Top Description Fields Constructors Methods
org.junit.platform.engine.discovery

pack-priv abstract Class AbstractClassNameFilter

extends Object
implements ClassNameFilter
Class Inheritance
All Implemented Interfaces
org.junit.platform.engine.discovery.ClassNameFilter, org.junit.platform.engine.DiscoveryFilter, org.junit.platform.engine.Filter
Known Direct Subclasses
org.junit.platform.engine.discovery.ExcludeClassNameFilter, org.junit.platform.engine.discovery.IncludeClassNameFilter
Static Imports
java.util.stream.Collectors.joining

Abstract ClassNameFilter that servers as a superclass for filters including or excluding fully qualified class names based on pattern-matching.
Since
1.0

Field Summary

Modifier and TypeField and Description
protected final String
protected final List<Pattern>

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
protected Optional<Pattern>
public abstract Predicate<String>
toPredicate()

Redeclares as abstract: org.junit.platform.engine.Filter.toPredicate.

Return a Predicate that returns true if this filter includes the object supplied to the predicate's test method.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

patternDescriptionback to summary
protected final String patternDescription
patternsback to summary
protected final List<Pattern> patterns

Constructor Detail

AbstractClassNameFilterback to summary
pack-priv AbstractClassNameFilter(String... patterns)

Method Detail

findMatchingPatternback to summary
protected Optional<Pattern> findMatchingPattern(String className)
toPredicateback to summary
public abstract Predicate<String> toPredicate()

Redeclares as abstract: org.junit.platform.engine.Filter.toPredicate.

Doc from org.junit.platform.engine.Filter.toPredicate.

Return a Predicate that returns true if this filter includes the object supplied to the predicate's test method.

Annotations
@Override