Package org.junit.platform.launcher
Interface MethodFilter
-
- All Superinterfaces:
Filter<TestDescriptor>,PostDiscoveryFilter
- All Known Implementing Classes:
AbstractMethodFilter,ExcludeMethodFilter,IncludeMethodFilter
@API(status=MAINTAINED, since="1.13.3") public interface MethodFilter extends PostDiscoveryFilterPostDiscoveryFilterthat is applied to the fully qualifiedMethodname without parameters.- Since:
- 1.12
- See Also:
includeMethodNamePatterns(String...),excludeMethodNamePatterns(String...)
-
-
Method Summary
Static Methods Modifier and Type Method Description static MethodFilterexcludeMethodNamePatterns(java.lang.String... patterns)Create a new excludeMethodFilterbased on the supplied patterns.static MethodFilterexcludeMethodNamePatterns(java.util.List<java.lang.String> patterns)Create a new excludeMethodFilterbased on the supplied patterns.static MethodFilterincludeMethodNamePatterns(java.lang.String... patterns)Create a new includeMethodFilterbased on the supplied patterns.static MethodFilterincludeMethodNamePatterns(java.util.List<java.lang.String> patterns)Create a new includeMethodFilterbased on the supplied patterns.-
Methods inherited from interface org.junit.platform.engine.Filter
apply, toPredicate
-
-
-
-
Method Detail
-
includeMethodNamePatterns
static MethodFilter includeMethodNamePatterns(java.lang.String... patterns)
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:
Class.getName(),Method.getName(),includeMethodNamePatterns(List),excludeMethodNamePatterns(String...)
-
includeMethodNamePatterns
static MethodFilter includeMethodNamePatterns(java.util.List<java.lang.String> patterns)
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:
Class.getName(),Method.getName(),includeMethodNamePatterns(String...),excludeMethodNamePatterns(String...)
-
excludeMethodNamePatterns
static MethodFilter excludeMethodNamePatterns(java.lang.String... patterns)
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:
Class.getName(),Method.getName(),excludeMethodNamePatterns(List),includeMethodNamePatterns(String...)
-
excludeMethodNamePatterns
static MethodFilter excludeMethodNamePatterns(java.util.List<java.lang.String> patterns)
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:
Class.getName(),Method.getName(),excludeMethodNamePatterns(String...),includeMethodNamePatterns(String...)
-
-