Module org.junit.platform.engine
Interface PackageNameFilter
- All Superinterfaces:
DiscoveryFilter<String>,Filter<String>
DiscoveryFilter that is applied to the name of a Package.- Since:
- 1.0
- See Also:
-
Method Summary
Static MethodsModifier and TypeMethodDescriptionstatic PackageNameFilterexcludePackageNames(String... names) Create a new excludePackageNameFilterbased on the supplied package names.static PackageNameFilterexcludePackageNames(List<String> names) Create a new excludePackageNameFilterbased on the supplied package names.static PackageNameFilterincludePackageNames(String... names) Create a new includePackageNameFilterbased on the supplied package names.static PackageNameFilterincludePackageNames(List<String> names) Create a new includePackageNameFilterbased on the supplied package names.Methods inherited from interface org.junit.platform.engine.Filter
apply, toPredicate
-
Method Details
-
includePackageNames
Create a new includePackageNameFilterbased on the supplied package names.The names are combined using OR semantics, i.e. if the fully qualified name of a package starts with at least one of the names, the package will be included in the result set.
- Parameters:
names- package names that we be compared against fully qualified package names; nevernull, empty, or containingnull- See Also:
-
includePackageNames
Create a new includePackageNameFilterbased on the supplied package names.The names are combined using OR semantics, i.e. if the fully qualified name of a package starts with at least one of the names, the package will be included in the result set.
- Parameters:
names- package names that we be compared against fully qualified package names; nevernull, empty, or containingnull- See Also:
-
excludePackageNames
Create a new excludePackageNameFilterbased on the supplied package names.The names are combined using OR semantics, i.e. if the fully qualified name of a package starts with at least one of the names, the package will be excluded in the result set.
- Parameters:
names- package names that we be compared against fully qualified package names; nevernull, empty, or containingnull- See Also:
-
excludePackageNames
Create a new excludePackageNameFilterbased on the supplied package names.The names are combined using OR semantics, i.e. if the fully qualified name of a package starts with at least one of the names, the package will be excluded in the result set.
- Parameters:
names- package names that we be compared against fully qualified package names; nevernull, empty, or containingnull- See Also:
-