Module org.junit.platform.engine
Interface ClassNameFilter
- All Superinterfaces:
DiscoveryFilter<String>,Filter<String>
DiscoveryFilter that is applied to the name of a Class.- Since:
- 1.0
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringStandard include pattern in the form of a regular expression that is used to match against fully qualified class names: "^(Test.*|.+[.$]Test.*|.*Tests?)$" -
Method Summary
Static MethodsModifier and TypeMethodDescriptionstatic ClassNameFilterexcludeClassNamePatterns(String... patterns) Create a new excludeClassNameFilterbased on the supplied patterns.static ClassNameFilterincludeClassNamePatterns(String... patterns) Create a new includeClassNameFilterbased on the supplied patterns.Methods inherited from interface org.junit.platform.engine.Filter
apply, toPredicate
-
Field Details
-
STANDARD_INCLUDE_PATTERN
Standard include pattern in the form of a regular expression that is used to match against fully qualified class names: "^(Test.*|.+[.$]Test.*|.*Tests?)$"This pattern matches against class names beginning with
Testor ending withTestorTests(in any package).- See Also:
-
-
Method Details
-
includeClassNamePatterns
Create a new includeClassNameFilterbased on the supplied patterns.The patterns are combined using OR semantics, i.e. if the fully qualified name of a class matches against at least one of the patterns, the class will be included in the result set.
- Parameters:
patterns- regular expressions to match against fully qualified class names; nevernull, empty, or containingnull- See Also:
-
excludeClassNamePatterns
Create a new excludeClassNameFilterbased on the supplied patterns.The patterns are combined using OR semantics, i.e. if the fully qualified name of a class matches against at least one of the patterns, the class will be excluded from the result set.
- Parameters:
patterns- regular expressions to match against fully qualified class names; nevernull, empty, or containingnull- See Also:
-