Class AnnotationMethodPredicate

java.lang.Object
org.antublue.test.engine.internal.predicate.AnnotationMethodPredicate
All Implemented Interfaces:
Predicate<Method>

public class AnnotationMethodPredicate extends Object implements Predicate<Method>
Class to implement a predicate to match a test method
  • Method Details

    • test

      public boolean test(Method method)
      Specified by:
      test in interface Predicate<Method>
    • of

      public static AnnotationMethodPredicate of(Class<? extends Annotation> annotation)
      Method to get an AnnotationMethodPredicate for an Annotation
      Parameters:
      annotation - annotation
      Returns:
      an AnnotationMethodPredicate for an Annotation
    • of

      @SafeVarargs public static AnnotationMethodPredicate of(Class<? extends Annotation>... annotations)
      Method to get an AnnotationMethodPredicate for a list of Annotations
      Parameters:
      annotations - annotations
      Returns:
      an AnnotationMethodPredicate for a list of Annotations
    • of

      public static AnnotationMethodPredicate of(List<Class<? extends Annotation>> annotations)
      Method to get an AnnotationMethodPredicate for a list of Annotations
      Parameters:
      annotations - annotations
      Returns:
      an AnnotationMethodPredicate for a list of Annotations