1 /******************************************************************************* 2 * Copyright (c) 2009, 2018 Mountainminds GmbH & Co. KG and Contributors 3 * All rights reserved. This program and the accompanying materials 4 * are made available under the terms of the Eclipse Public License v1.0 5 * which accompanies this distribution, and is available at 6 * http://www.eclipse.org/legal/epl-v10.html 7 * 8 * Contributors: 9 * Marc R. Hoffmann - initial API and implementation 10 * 11 *******************************************************************************/ 12 package org.jacoco.core.test.validation; 13 14 import org.jacoco.core.analysis.ICounter; 15 import org.jacoco.core.test.validation.targets.Target09; 16 import org.junit.Test; 17 18 /** 19 * Test of field initialization in two constructors. 20 */ 21 public class FieldInitializationInTwoConstructorsTest extends 22 ValidationTestBase { 23 24 public FieldInitializationInTwoConstructorsTest() { 25 super(Target09.class); 26 } 27 28 @Test 29 public void testCoverageResult() { 30 31 assertLine("field1", ICounter.PARTLY_COVERED); 32 assertLine("field2", ICounter.PARTLY_COVERED); 33 assertLine("constr1", ICounter.FULLY_COVERED); 34 assertLine("constr2", ICounter.NOT_COVERED); 35 36 } 37 38 } 39