A pattern passed to `grails test-app` that targets one or more tests and potentially a single method Examples:
**/SomeController
, classPattern: SomeController
, methodName: null
**/*Controller*
, classPattern: *Controller*
, methodName: null
**/SomeController
, classPattern: SomeController
, methodName: testSomeAction
org/SomeController
, classPattern: org.SomeController
, methodName: null
Note: the interpretation of a target pattern is largely the responsibility of a test type.
Constructor and description |
---|
GrailsTestTargetPattern
(java.lang.String pattern) |
Type | Name and description |
---|---|
protected java.lang.Object |
classPatternToFilePattern(java.lang.String pattern) |
protected boolean |
containsMethodName(java.lang.String pattern) |
boolean |
isMethodTargeting() |
boolean |
matches(java.lang.String className, java.lang.String methodName, java.lang.String[] suffixes) |
boolean |
matchesClass(java.lang.String className, java.lang.String[] suffixes) |
protected boolean |
matchesClassWithExtension(java.lang.String className) |
protected boolean |
matchesClassWithoutExtension(java.lang.String className, java.lang.String[] suffixes) |
boolean |
matchesMethod(java.lang.String methodName) |
java.lang.String |
toString() |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
The target pattern as it applies to class names, without a methodName component
The target pattern as it applies to the file system (i.e. suitable for use with a PathMatchingResourcePatternResolver)
The method name component if it is present
The pattern, unchanged
Groovy Documentation