Type Params | Return Type | Name and description |
---|---|---|
|
static java.lang.String |
extractControllerNameFromTestClassName(java.lang.String testClassName, java.lang.String[] testClassSuffixes) Derive the controller name from the given class name using the list of given suffixes, typically ['Test', 'Tests', 'Spec', 'Specification']. |
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() |
Derive the controller name from the given class name using the list of given suffixes, typically ['Test', 'Tests', 'Spec', 'Specification']. Given something like 'com.triu.TheControllerSpec' -> 'the' 'TheControllerTests' -> 'the' 'TheControllerIntegrationTests' -> 'the' 'TheTests' -> null