@groovy.transform.Trait @groovy.transform.CompileStatic trait ServiceUnitTest<T> extends ParameterizedGrailsUnitTest<T>
| Modifiers | Name | Description | 
|---|---|---|
static java.lang.String  | 
                            DATATEST_CLASS | 
                            
| Type Params | Return Type | Name and description | 
|---|---|---|
 | 
                            java.lang.String | 
                            getBeanName(java.lang.Class<?> serviceClass) | 
                        
 | 
                            T | 
                            getService() | 
                        
 | 
                            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