|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | PROPERTY | CONSTR | METHOD | DETAIL: FIELD | PROPERTY | CONSTR | METHOD |
java.lang.Object org.codehaus.groovy.grails.test.GrailsTestTargetPattern
class GrailsTestTargetPattern extends java.lang.Object
A pattern passed to `grails test-app` that targets one or more tests and potentially a single method Examples:
Property Summary | |
---|---|
java.lang.String |
classPattern
The target pattern as it applies to class names, without a methodName component |
java.lang.String |
filePattern
The target pattern as it applies to the file system (i.e. suitable for use with a PathMatchingResourcePatternResolver) |
java.lang.String |
methodName
The method name component if it is present |
java.lang.String |
rawPattern
The pattern, unchanged |
Constructor Summary | |
GrailsTestTargetPattern(java.lang.String pattern)
|
Method Summary | |
---|---|
protected java.lang.Object
|
classPatternToFilePattern(java.lang.Object pattern)
|
protected boolean
|
containsMethodName(java.lang.Object 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 java.lang.Object | |
---|---|
java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#wait(long, int), 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() |
Property Detail |
---|
final java.lang.String classPattern
final java.lang.String filePattern
final java.lang.String methodName
final java.lang.String rawPattern
Constructor Detail |
---|
GrailsTestTargetPattern(java.lang.String pattern)
Method Detail |
---|
protected java.lang.Object classPatternToFilePattern(java.lang.Object pattern)
protected boolean containsMethodName(java.lang.Object 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()
Groovy Documentation