Created
December 14, 2012 21:33
-
-
Save avandeursen/4288830 to your computer and use it in GitHub Desktop.
Simple test case that passes normally, but fails when run with Jacoco instrumentation enabled -- since Jacoco generates an extra synthetic method for the classes it instruments.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class JacocoTest { | |
public static class NoMethods { } | |
@Test public void testDeclaredMethod() { | |
assertEquals(0, NoMethods.class.getDeclaredMethods().length); | |
} } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment