@Test public void testMethodAnnotationsOnCompleteClasspath() throws IOException { final long time = System.currentTimeMillis(); final CountingReporter counter = new CountingReporter(Test.class); final AnnotationDetector cf = new AnnotationDetector(counter); cf.detect(); if (DEBUG) log("Time: %d ms.", System.currentTimeMillis() - time); assertEquals(0, counter.getTypeCount()); assertEquals(0, counter.getFieldCount()); assertEquals(15, 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);  }