Module org.junit.platform.engine
Class IncludePackageNameFilter
java.lang.Object
org.junit.platform.engine.discovery.IncludePackageNameFilter
- All Implemented Interfaces:
PackageNameFilter,DiscoveryFilter<String>,Filter<String>
PackageNameFilter that matches fully qualified package names that
are prefixed by one of the package names provided to the filter.
If the fully qualified name of a package starts with at least one of the packages names of the filter, the package will be included.
- Since:
- 1.0
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionApply this filter to the supplied object.findMatchingName(String packageName) private StringformatExclusionReason(String packageName) private StringformatInclusionReason(String packageName, String matchedName) toString()
-
Field Details
-
packageNames
-
patternDescription
-
-
Constructor Details
-
IncludePackageNameFilter
IncludePackageNameFilter(String... packageNames)
-
-
Method Details
-
apply
Description copied from interface:FilterApply this filter to the supplied object. -
formatInclusionReason
-
formatExclusionReason
-
toPredicate
Description copied from interface:FilterReturn aPredicatethat returnstrueif this filter includes the object supplied to the predicate'stestmethod.- Specified by:
toPredicatein interfaceFilter<String>
-
findMatchingName
-
toString
-