Class IsTestMethod

java.lang.Object
org.junit.jupiter.engine.discovery.predicates.IsTestMethod
All Implemented Interfaces:
Predicate<Method>

@API(status=INTERNAL, since="5.0") public class IsTestMethod extends Object
Test if a method is a JUnit Jupiter @Test method.
Since:
5.0
  • Constructor Details

    • IsTestMethod

      public IsTestMethod(org.junit.platform.engine.support.discovery.DiscoveryIssueReporter issueReporter)
  • Method Details

    • test

      public boolean test(Method candidate)
      Specified by:
      test in interface Predicate<Method>
    • hasVoidReturnType

      protected static org.junit.platform.engine.support.discovery.DiscoveryIssueReporter.Condition<Method> hasVoidReturnType(Class<? extends Annotation> annotationType, org.junit.platform.engine.support.discovery.DiscoveryIssueReporter issueReporter)
    • createIssue

      protected static org.junit.platform.engine.DiscoveryIssue createIssue(Class<? extends Annotation> annotationType, Method method, String condition)