Top Description Constructors Methods
org.junit.jupiter.engine.discovery.predicates

public Class IsPotentialTestContainer

extends Object
implements Predicate<Class<?>>
Class Inheritance
All Implemented Interfaces
java.util.function.Predicate
Annotations
@API
status:INTERNAL
since:5.0
Static Imports
org.apiguardian.api.API.Status.INTERNAL, org.junit.platform.commons.util.ReflectionUtils.isAbstract, .ReflectionUtils.isInnerClass, .ReflectionUtils.isPrivate

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

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public boolean
test(Class<?>
the input argument
candidate
)

Implements java.util.function.Predicate.test.

Evaluates this predicate on the given argument.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

IsPotentialTestContainerback to summary
public IsPotentialTestContainer()

Method Detail

testback to summary
public boolean test(Class<?> candidate)

Implements java.util.function.Predicate.test.

Doc from java.util.function.Predicate.test.

Evaluates this predicate on the given argument.

Parameters
candidate:Class<?>

the input argument

Returns:boolean

true if the input argument matches the predicate, otherwise false

Annotations
@Override