Interface MethodFilter
- All Superinterfaces:
org.junit.platform.engine.Filter<org.junit.platform.engine.TestDescriptor>, PostDiscoveryFilter
PostDiscoveryFilter that is applied to the fully qualified
Method name without parameters.- Since:
- 1.12
- See Also:
-
Method Summary
Static MethodsModifier and TypeMethodDescriptionstatic MethodFilterexcludeMethodNamePatterns(String... patterns) Create a new excludeMethodFilterbased on the supplied patterns.static MethodFilterexcludeMethodNamePatterns(List<String> patterns) Create a new excludeMethodFilterbased on the supplied patterns.static MethodFilterincludeMethodNamePatterns(String... patterns) Create a new includeMethodFilterbased on the supplied patterns.static MethodFilterincludeMethodNamePatterns(List<String> patterns) Create a new includeMethodFilterbased on the supplied patterns.Methods inherited from interface org.junit.platform.engine.Filter
apply, toPredicate
-
Method Details
-
includeMethodNamePatterns
Create a new includeMethodFilterbased on the supplied patterns.The patterns are combined using OR semantics, i.e. if the fully qualified name of a method matches against at least one of the patterns, the method will be included in the result set.
- Parameters:
patterns- regular expressions to match against fully qualified method names; nevernull, empty, or containingnull- See Also:
-
includeMethodNamePatterns
Create a new includeMethodFilterbased on the supplied patterns.The patterns are combined using OR semantics, i.e. if the fully qualified name of a method matches against at least one of the patterns, the method will be included in the result set.
- Parameters:
patterns- regular expressions to match against fully qualified method names; nevernull, empty, or containingnull- See Also:
-
excludeMethodNamePatterns
Create a new excludeMethodFilterbased on the supplied patterns.The patterns are combined using OR semantics, i.e. if the fully qualified name of a method matches against at least one of the patterns, the method will be excluded from the result set.
- Parameters:
patterns- regular expressions to match against fully qualified method names; nevernull, empty, or containingnull- See Also:
-
excludeMethodNamePatterns
Create a new excludeMethodFilterbased on the supplied patterns.The patterns are combined using OR semantics, i.e. if the fully qualified name of a method matches against at least one of the patterns, the method will be excluded from the result set.
- Parameters:
patterns- regular expressions to match against fully qualified method names; nevernull, empty, or containingnull- See Also:
-