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

pack-priv Class IncludeClassNameFilter

extends AbstractClassNameFilter
Class Inheritance
Static Imports
org.junit.platform.engine.FilterResult.excluded, .FilterResult.included

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 included.

Since
1.0

Field Summary

Inherited from org.junit.platform.engine.discovery.AbstractClassNameFilter:
patternDescriptionpatterns

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public FilterResult
apply(String className)

Implements org.junit.platform.engine.Filter.apply.

Apply this filter to the supplied object.

private String
private String
formatInclusionReason(String className, Pattern pattern)

public Predicate<String>
toPredicate()

Overrides default org.junit.platform.engine.Filter.toPredicate.

Implements abstract org.junit.platform.engine.discovery.AbstractClassNameFilter.toPredicate.

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

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from org.junit.platform.engine.discovery.AbstractClassNameFilter:
findMatchingPattern

Constructor Detail

IncludeClassNameFilterback to summary
pack-priv IncludeClassNameFilter(String... patterns)

Method Detail

applyback to summary
public FilterResult apply(String className)

Implements org.junit.platform.engine.Filter.apply.

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

Apply this filter to the supplied object.

Annotations
@Override
formatExclusionReasonback to summary
private String formatExclusionReason(String className)
formatInclusionReasonback to summary
private String formatInclusionReason(String className, Pattern pattern)
toPredicateback to summary
public Predicate<String> toPredicate()

Overrides default org.junit.platform.engine.Filter.toPredicate.

Implements abstract org.junit.platform.engine.discovery.AbstractClassNameFilter.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
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Annotations
@Override