DiscoveryFilter that is applied to the name of a Class.
includeClassNamePatterns(String...) , excludeClassNamePatterns(String...) , PackageNameFilter
| Modifier and Type | Field and Description |
|---|---|
| public static final String | 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 |
| Modifier and Type | Method and Description |
|---|---|
| public static ClassNameFilter | excludeClassNamePatterns(String...
regular expressions to match against fully qualified
class names; never patterns)null, empty, or containing nullCreate a new exclude |
| public static ClassNameFilter | includeClassNamePatterns(String...
regular expressions to match against fully qualified
class names; never patterns)null, empty, or containing nullCreate a new include |
| STANDARD_INCLUDE_PATTERN | back to summary |
|---|---|
| public static final String 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 | |
| excludeClassNamePatterns | back to summary |
|---|---|
| public static ClassNameFilter excludeClassNamePatterns(String... patterns) Create a new exclude 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.
| |
| includeClassNamePatterns | back to summary |
|---|---|
| public static ClassNameFilter includeClassNamePatterns(String... patterns) Create a new include 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.
| |