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 boolean mustReturnVoid  
    • Constructor Summary

      Constructors 
      Constructor Description
      IsTestableMethod​(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType, boolean mustReturnVoid)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      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
      • mustReturnVoid

        private final boolean mustReturnVoid
    • Constructor Detail

      • IsTestableMethod

        IsTestableMethod​(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType,
                         boolean mustReturnVoid)
    • Method Detail

      • test

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