diff options
author | Marc R. Hoffmann <hoffmann@mountainminds.com> | 2010-03-04 12:37:15 +0000 |
---|---|---|
committer | Marc R. Hoffmann <hoffmann@mountainminds.com> | 2010-03-04 12:37:15 +0000 |
commit | 1aa91e139145b745dc92bf97e4af8c9215e78f4c (patch) | |
tree | ba0d6caaaa4bc36c3913f040404e69967c247024 /org.jacoco.core.test/src/org/jacoco/core/test/validation/targets | |
parent | 721a411d03a729c16a373ed896579a1d4457d71c (diff) | |
download | jacoco-1aa91e139145b745dc92bf97e4af8c9215e78f4c.tar.gz |
Trac #21: Code coverage for static initializers in interfaces.
Diffstat (limited to 'org.jacoco.core.test/src/org/jacoco/core/test/validation/targets')
-rw-r--r-- | org.jacoco.core.test/src/org/jacoco/core/test/validation/targets/Target04.java | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/org.jacoco.core.test/src/org/jacoco/core/test/validation/targets/Target04.java b/org.jacoco.core.test/src/org/jacoco/core/test/validation/targets/Target04.java new file mode 100644 index 00000000..e44eb52d --- /dev/null +++ b/org.jacoco.core.test/src/org/jacoco/core/test/validation/targets/Target04.java @@ -0,0 +1,32 @@ +/******************************************************************************* + * Copyright (c) 2009, 2010 Mountainminds GmbH & Co. KG and others + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Marc R. Hoffmann - initial API and implementation + * + * $Id: $ + *******************************************************************************/ +package org.jacoco.core.test.validation.targets; + +import static org.jacoco.core.test.validation.targets.Stubs.i1; +import static org.jacoco.core.test.validation.targets.Stubs.i2; + +/** + * This test target is an interface with a class initializer. + * + * @author Marc R. Hoffmann + * @version $Revision: $ + */ +public interface Target04 { + + public static final int CONST1 = i1(); // $line-const1$ + + public static final int CONST2 = i2(); // $line-const2$ + + public static final Object CONST3 = new Object(); // $line-const3$ + +} |