@Test @RuntimeVisibleTestAnnotation @RuntimeInvisibleTestAnnotation public void testTestComplexAnnotations() throws IOException { @SuppressWarnings("unchecked") final CountingReporter counter = new CountingReporter( RuntimeVisibleTestAnnotations.class, RuntimeVisibleTestAnnotation.class, RuntimeInvisibleTestAnnotation.class); new AnnotationDetector(counter).detect("eu.infomas.annotation"); assertEquals(2, counter.getTypeCount()); assertEquals(1, counter.getFieldCount()); assertEquals(2, counter.getMethodCount()); }
public void detect() throws IOException { detect(new ClassFileIterator()); }
AnnotationDetector { public void detect() throws IOException { detect(new ClassFileIterator()); } }
AnnotationDetector { public void detect() throws IOException { detect(new ClassFileIterator()); } AnnotationDetector(final Reporter reporter); }
AnnotationDetector { public void detect() throws IOException { detect(new ClassFileIterator()); } AnnotationDetector(final Reporter reporter); void detect(); void detect(final String... packageNames); void detect(final File... filesOrDirectories); @SuppressWarnings("illegalcatch") void detect(final ResourceIterator iterator); }
AnnotationDetector { public void detect() throws IOException { detect(new ClassFileIterator()); } AnnotationDetector(final Reporter reporter); void detect(); void detect(final String... packageNames); void detect(final File... filesOrDirectories); @SuppressWarnings("illegalcatch") void detect(final ResourceIterator iterator);  }