java.lang.Object
org.junit.platform.commons.util.ClassFilter
@API(status=INTERNAL,
since="1.1")
public class ClassFilter
extends Object
implements Predicate<Class<?>>
Class-related predicate used by reflection utilities.
DISCLAIMER
These utilities are intended solely for usage within the JUnit framework itself. Any usage by external parties is not supported. Use at your own risk!
- Since:
- 1.1
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Test class using the stored class predicate.boolean
Test name using the stored name predicate.static ClassFilter
Create aClassFilter
instance that accepts all names but filters classes.static ClassFilter
Create aClassFilter
instance that filters by names and classes.boolean
-
Method Details
-
of
Create aClassFilter
instance that accepts all names but filters classes. -
of
Create aClassFilter
instance that filters by names and classes. -
match
Test name using the stored name predicate. -
match
Test class using the stored class predicate. -
test
-