Class IsTestFactoryMethod



  • @API(status=INTERNAL,
         since="5.0")
    public class IsTestFactoryMethod
    extends java.lang.Object
    Test if a method is a JUnit Jupiter @TestFactory method.

    NOTE: this predicate does not check if a candidate method has an appropriate return type for a @TestFactory method.

    Since:
    5.0
    • 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, isEqual, negate, or
    • Constructor Detail

      • IsTestFactoryMethod

        public IsTestFactoryMethod​()
    • Method Detail

      • test

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