Class ExcludeClassNameFilter
java.lang.Object
org.junit.platform.engine.discovery.AbstractClassNameFilter
org.junit.platform.engine.discovery.ExcludeClassNameFilter
- All Implemented Interfaces:
ClassNameFilter
,DiscoveryFilter<String>
,Filter<String>
ClassNameFilter
that matches fully qualified class names against
patterns in the form of regular expressions.
If the fully qualified name of a class matches against at least one pattern, the class will be excluded.
- Since:
- 1.0
-
Field Summary
Fields inherited from class org.junit.platform.engine.discovery.AbstractClassNameFilter
patternDescription, patterns
Fields inherited from interface org.junit.platform.engine.discovery.ClassNameFilter
STANDARD_INCLUDE_PATTERN
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionApply this filter to the supplied object.private String
formatExclusionReason
(String className, Pattern pattern) private String
formatInclusionReason
(String className) toString()
Methods inherited from class org.junit.platform.engine.discovery.AbstractClassNameFilter
findMatchingPattern
-
Constructor Details
-
ExcludeClassNameFilter
ExcludeClassNameFilter(String... patterns)
-
-
Method Details
-
apply
Description copied from interface:Filter
Apply this filter to the supplied object. -
formatInclusionReason
-
formatExclusionReason
-
toPredicate
Description copied from interface:Filter
Return aPredicate
that returnstrue
if this filter includes the object supplied to the predicate'stest
method.- Specified by:
toPredicate
in interfaceFilter<String>
- Specified by:
toPredicate
in classAbstractClassNameFilter
-
toString
-