Class IsPotentialTestContainer

java.lang.Object
org.junit.jupiter.engine.discovery.predicates.IsPotentialTestContainer
All Implemented Interfaces:
java.util.function.Predicate<java.lang.Class<?>>

@API(status=INTERNAL,
     since="5.0")
public class IsPotentialTestContainer
extends java.lang.Object
implements java.util.function.Predicate<java.lang.Class<?>>
Test if a class is a potential top-level JUnit Jupiter test container, even if it does not contain tests.
Since:
5.0
  • Constructor Summary

    Constructors
    Constructor Description
    IsPotentialTestContainer()  
  • Method Summary

    Modifier and Type Method Description
    boolean test​(java.lang.Class<?> 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
  • Constructor Details

    • IsPotentialTestContainer

      public IsPotentialTestContainer()
  • Method Details

    • test

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