class ControllerNameExtractor extends Object
Constructor and description |
---|
ControllerNameExtractor() |
Type Params | Return Type | Name and description |
---|---|---|
|
static String |
extractControllerNameFromTestClassName(String testClassName, String[] testClassSuffixes) Derive the controller name from the given class name using the list of given suffixes, typically ['Test', 'Tests', 'Spec', 'Specification']. |
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