Package org.springframework.batch.support

Examples of org.springframework.batch.support.AnnotationMethodResolver.findMethod()


public class AnnotationMethodResolverTests {

  @Test
  public void singleAnnotation() {
    AnnotationMethodResolver resolver = new AnnotationMethodResolver(TestAnnotation.class);
    Method method = resolver.findMethod(SingleAnnotationTestBean.class);
    assertNotNull(method);
  }

  @Test(expected = IllegalArgumentException.class)
  public void multipleAnnotations() {
View Full Code Here


  }

  @Test(expected = IllegalArgumentException.class)
  public void multipleAnnotations() {
    AnnotationMethodResolver resolver = new AnnotationMethodResolver(TestAnnotation.class);
    resolver.findMethod(MultipleAnnotationTestBean.class);
  }

  @Test
  public void noAnnotations() {
    AnnotationMethodResolver resolver = new AnnotationMethodResolver(TestAnnotation.class);
View Full Code Here

  }

  @Test
  public void noAnnotations() {
    AnnotationMethodResolver resolver = new AnnotationMethodResolver(TestAnnotation.class);
    Method method = resolver.findMethod(NoAnnotationTestBean.class);
    assertNull(method);
  }


  @Target(ElementType.METHOD)
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.