Class IsTestableMethod

  • All Implemented Interfaces:
    java.util.function.Predicate<java.lang.reflect.Method>
    Direct Known Subclasses:
    IsTestFactoryMethod, IsTestMethod, IsTestTemplateMethod

    abstract class IsTestableMethod
    extends java.lang.Object
    implements java.util.function.Predicate<java.lang.reflect.Method>
    Since:
    5.0
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.Class<? extends java.lang.annotation.Annotation> annotationType  
      private org.junit.platform.engine.support.discovery.DiscoveryIssueReporter.Condition<java.lang.reflect.Method> condition  
    • Constructor Summary

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

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected static org.junit.platform.engine.DiscoveryIssue createIssue​(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType, java.lang.reflect.Method method, java.lang.String condition)  
      protected static org.junit.platform.engine.support.discovery.DiscoveryIssueReporter.Condition<java.lang.reflect.Method> hasVoidReturnType​(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType, org.junit.platform.engine.support.discovery.DiscoveryIssueReporter issueReporter)  
      private static org.junit.platform.engine.support.discovery.DiscoveryIssueReporter.Condition<java.lang.reflect.Method> isNotPrivate​(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType, org.junit.platform.engine.support.discovery.DiscoveryIssueReporter issueReporter)  
      private static org.junit.platform.engine.support.discovery.DiscoveryIssueReporter.Condition<java.lang.reflect.Method> isNotStatic​(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType, org.junit.platform.engine.support.discovery.DiscoveryIssueReporter issueReporter)  
      boolean test​(java.lang.reflect.Method candidate)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.function.Predicate

        and, negate, or
    • Field Detail

      • annotationType

        private final java.lang.Class<? extends java.lang.annotation.Annotation> annotationType
      • condition

        private final org.junit.platform.engine.support.discovery.DiscoveryIssueReporter.Condition<java.lang.reflect.Method> condition
    • Constructor Detail

      • IsTestableMethod

        IsTestableMethod​(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType,
                         java.util.function.BiFunction<java.lang.Class<? extends java.lang.annotation.Annotation>,​org.junit.platform.engine.support.discovery.DiscoveryIssueReporter,​org.junit.platform.engine.support.discovery.DiscoveryIssueReporter.Condition<java.lang.reflect.Method>> returnTypeConditionFactory,
                         org.junit.platform.engine.support.discovery.DiscoveryIssueReporter issueReporter)
    • Method Detail

      • test

        public boolean test​(java.lang.reflect.Method candidate)
        Specified by:
        test in interface java.util.function.Predicate<java.lang.reflect.Method>
      • isNotStatic

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

        private static org.junit.platform.engine.support.discovery.DiscoveryIssueReporter.Condition<java.lang.reflect.Method> isNotPrivate​(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType,
                                                                                                                                           org.junit.platform.engine.support.discovery.DiscoveryIssueReporter issueReporter)
      • hasVoidReturnType

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

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