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

public Class IsTestClassWithTests

extends Object
implements Predicate<Class<?>>
Class Inheritance
All Implemented Interfaces
java.util.function.Predicate
Annotations
@API
status:INTERNAL
since:5.1
Static Imports
org.apiguardian.api.API.Status.INTERNAL

Test if a class is a JUnit Jupiter test class containing executable tests, test factories, test templates, or nested tests.
Since
5.0

Field Summary

Modifier and TypeField and Description
private static final IsNestedTestClass
private static final IsPotentialTestContainer
private static final IsTestFactoryMethod
private static final IsTestMethod
public static final Predicate<Method>
private static final IsTestTemplateMethod

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private boolean
hasNestedTests(Class<?> candidate)

private boolean
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

Field Detail

isNestedTestClassback to summary
private static final IsNestedTestClass isNestedTestClass
isPotentialTestContainerback to summary
private static final IsPotentialTestContainer isPotentialTestContainer
isTestFactoryMethodback to summary
private static final IsTestFactoryMethod isTestFactoryMethod
isTestMethodback to summary
private static final IsTestMethod isTestMethod
isTestOrTestFactoryOrTestTemplateMethodback to summary
public static final Predicate<Method> isTestOrTestFactoryOrTestTemplateMethod
isTestTemplateMethodback to summary
private static final IsTestTemplateMethod isTestTemplateMethod

Constructor Detail

IsTestClassWithTestsback to summary
public IsTestClassWithTests()

Method Detail

hasNestedTestsback to summary
private boolean hasNestedTests(Class<?> candidate)
hasTestOrTestFactoryOrTestTemplateMethodsback to summary
private boolean hasTestOrTestFactoryOrTestTemplateMethods(Class<?> candidate)
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