Class TestMethodPredicate

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

public final class TestMethodPredicate extends RegexPredicate<Method>
Class to implement a test method predicate
  • Method Details

    • test

      public boolean test(Method method)
      Method to test the Predicate
      Specified by:
      test in interface Predicate<Method>
      Specified by:
      test in class RegexPredicate<Method>
      Parameters:
      method - the input argument
      Returns:
      whether to accept the Method
    • of

      public static TestMethodPredicate of(String regex)
      Method to create an instance of a TestMethodPredicate
      Parameters:
      regex - regex
      Returns:
      the return value