ControllerNameExtractor (Grails 3.3.2)
Date: 2017-11-24

Package: org.grails.test.support

## [Groovy] Class ControllerNameExtractor

- org.grails.test.support.ControllerNameExtractor

- - ### Methods Summary

    Methods
    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'].

  - ### Inherited Methods Summary

    Inherited Methods
    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()`

- - ### Method Detail

    - #### 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']. Given something like 'com.triu.TheControllerSpec' -> 'the' 'TheControllerTests' -> 'the' 'TheControllerIntegrationTests' -> 'the' 'TheTests' -> null

      Parameters:
        testClassName
        testClassSuffixes
      Returns:
        the controller name or null if nothing could be derived