@Test(expected = IllegalArgumentException.class) public void multipleAnnotations() { AnnotationMethodResolver resolver = new AnnotationMethodResolver(TestAnnotation.class); resolver.findMethod(MultipleAnnotationTestBean.class); }
@Test public void singleAnnotation() { AnnotationMethodResolver resolver = new AnnotationMethodResolver(TestAnnotation.class); Method method = resolver.findMethod(SingleAnnotationTestBean.class); assertNotNull(method); }
@Test public void noAnnotations() { AnnotationMethodResolver resolver = new AnnotationMethodResolver(TestAnnotation.class); Method method = resolver.findMethod(NoAnnotationTestBean.class); assertNull(method); }