Class IsTestableMethod

java.lang.Object
org.junit.jupiter.engine.discovery.predicates.IsTestableMethod
All Implemented Interfaces:
Predicate<Method>
Direct Known Subclasses:
IsTestFactoryMethod, IsTestMethod, IsTestTemplateMethod

abstract class IsTestableMethod extends Object implements Predicate<Method>
Since:
5.0
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final Class<? extends Annotation>
     
    private final org.junit.platform.engine.support.discovery.DiscoveryIssueReporter.Condition<Method>
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    IsTestableMethod(Class<? extends Annotation> annotationType, BiFunction<Class<? extends Annotation>, org.junit.platform.engine.support.discovery.DiscoveryIssueReporter, org.junit.platform.engine.support.discovery.DiscoveryIssueReporter.Condition<Method>> returnTypeConditionFactory, org.junit.platform.engine.support.discovery.DiscoveryIssueReporter issueReporter)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected static org.junit.platform.engine.DiscoveryIssue
    createIssue(Class<? extends Annotation> annotationType, Method method, String condition)
     
    protected static org.junit.platform.engine.support.discovery.DiscoveryIssueReporter.Condition<Method>
    hasVoidReturnType(Class<? extends Annotation> annotationType, org.junit.platform.engine.support.discovery.DiscoveryIssueReporter issueReporter)
     
    private static org.junit.platform.engine.support.discovery.DiscoveryIssueReporter.Condition<Method>
    isNotPrivate(Class<? extends Annotation> annotationType, org.junit.platform.engine.support.discovery.DiscoveryIssueReporter issueReporter)
     
    private static org.junit.platform.engine.support.discovery.DiscoveryIssueReporter.Condition<Method>
    isNotStatic(Class<? extends Annotation> annotationType, org.junit.platform.engine.support.discovery.DiscoveryIssueReporter issueReporter)
     
    boolean
    test(Method candidate)
     

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface Predicate

    and, negate, or
  • Field Details

    • annotationType

      private final Class<? extends Annotation> annotationType
    • condition

      private final org.junit.platform.engine.support.discovery.DiscoveryIssueReporter.Condition<Method> condition
  • Constructor Details

    • IsTestableMethod

      IsTestableMethod(Class<? extends Annotation> annotationType, BiFunction<Class<? extends Annotation>, org.junit.platform.engine.support.discovery.DiscoveryIssueReporter, org.junit.platform.engine.support.discovery.DiscoveryIssueReporter.Condition<Method>> returnTypeConditionFactory, org.junit.platform.engine.support.discovery.DiscoveryIssueReporter issueReporter)
  • Method Details

    • test

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

      private static org.junit.platform.engine.support.discovery.DiscoveryIssueReporter.Condition<Method> isNotStatic(Class<? extends Annotation> annotationType, org.junit.platform.engine.support.discovery.DiscoveryIssueReporter issueReporter)
    • isNotPrivate

      private static org.junit.platform.engine.support.discovery.DiscoveryIssueReporter.Condition<Method> isNotPrivate(Class<? extends Annotation> annotationType, org.junit.platform.engine.support.discovery.DiscoveryIssueReporter issueReporter)
    • 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)