@groovy.transform.Trait @groovy.transform.CompileStatic trait ServiceUnitTest<T> extends ParameterizedGrailsUnitTest<T>
Modifiers | Name | Description |
---|---|---|
static java.lang.String |
DATATEST_CLASS |
|
private static java.lang.Class |
dataTest |
|
private static boolean |
dataTestLoaded |
Type Params | Return Type | Name and description |
---|---|---|
|
java.lang.String |
getBeanName(java.lang.Class<?> serviceClass) |
|
T |
getService() |
|
private void |
loadDataTestClass() |
|
void |
mockArtefact(java.lang.Class<?> serviceClass) Mocks a service class, registering it with the application context |
Mocks a service class, registering it with the application context
serviceClass
- The service class