Class ExcludePackageNameFilter
java.lang.Object
org.junit.platform.engine.discovery.ExcludePackageNameFilter
- All Implemented Interfaces:
PackageNameFilter
,DiscoveryFilter<String>
,Filter<String>
PackageNameFilter
that matches fully qualified package names that
are not 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 excluded.
- Since:
- 1.0
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionApply this filter to the supplied object.findMatchingName
(String packageName) private String
formatExclusionReason
(String packageName, String matchedName) private String
formatInclusionReason
(String packageName) toString()
-
Field Details
-
packageNames
-
patternDescription
-
-
Constructor Details
-
ExcludePackageNameFilter
ExcludePackageNameFilter(String... packageNames)
-
-
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>
-
findMatchingName
-
toString
-