Top Description Methods
org.junit.platform.launcher

public Interface MethodFilter

extends PostDiscoveryFilter
Known Direct Implementers
org.junit.platform.launcher.AbstractMethodFilter
Annotations
@API
status:MAINTAINED
since:1.13.3
Static Imports
org.apiguardian.api.API.Status.MAINTAINED

PostDiscoveryFilter that is applied to the fully qualified Method name without parameters.
Since
1.12
See Also
includeMethodNamePatterns(String...), excludeMethodNamePatterns(String...)

Method Summary

Modifier and TypeMethod and Description
public static MethodFilter
excludeMethodNamePatterns(String...
regular expressions to match against fully qualified method names; never null, empty, or containing null
patterns
)

Create a new exclude MethodFilter based on the supplied patterns.

public static MethodFilter
excludeMethodNamePatterns(List<String>
regular expressions to match against fully qualified method names; never null, empty, or containing null
patterns
)

Create a new exclude MethodFilter based on the supplied patterns.

public static MethodFilter
includeMethodNamePatterns(String...
regular expressions to match against fully qualified method names; never null, empty, or containing null
patterns
)

Create a new include MethodFilter based on the supplied patterns.

public static MethodFilter
includeMethodNamePatterns(List<String>
regular expressions to match against fully qualified method names; never null, empty, or containing null
patterns
)

Create a new include MethodFilter based on the supplied patterns.

Method Detail

excludeMethodNamePatternsback to summary
public static MethodFilter excludeMethodNamePatterns(String... patterns)

Create a new exclude MethodFilter based 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:String[]

regular expressions to match against fully qualified method names; never null, empty, or containing null

See Also
Class#getName(), Method#getName(), excludeMethodNamePatterns(List), includeMethodNamePatterns(String...)
excludeMethodNamePatternsback to summary
public static MethodFilter excludeMethodNamePatterns(List<String> patterns)

Create a new exclude MethodFilter based 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:List<String>

regular expressions to match against fully qualified method names; never null, empty, or containing null

See Also
Class#getName(), Method#getName(), excludeMethodNamePatterns(String...), includeMethodNamePatterns(String...)
includeMethodNamePatternsback to summary
public static MethodFilter includeMethodNamePatterns(String... patterns)

Create a new include MethodFilter based 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:String[]

regular expressions to match against fully qualified method names; never null, empty, or containing null

See Also
Class#getName(), Method#getName(), includeMethodNamePatterns(List), excludeMethodNamePatterns(String...)
includeMethodNamePatternsback to summary
public static MethodFilter includeMethodNamePatterns(List<String> patterns)

Create a new include MethodFilter based 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:List<String>

regular expressions to match against fully qualified method names; never null, empty, or containing null

See Also
Class#getName(), Method#getName(), includeMethodNamePatterns(String...), excludeMethodNamePatterns(String...)