|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object grails.test.mixin.support.GrailsUnitTestMixin grails.test.mixin.services.ServiceUnitTestMixin
class ServiceUnitTestMixin extends GrailsUnitTestMixin
A mixin that provides mocking capability for services.
Method Summary | |
---|---|
java.lang.Object
|
mockService(java.lang.Class serviceClass)
Mocks a service class, registering it with the application context |
java.lang.Object
|
testFor(java.lang.Class serviceClass)
Mocks a service class, registering it with the application context |
Methods inherited from class java.lang.Object | |
---|---|
java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#wait(long, int), 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 |
---|
java.lang.Object mockService(java.lang.Class serviceClass)
serviceClass
- The service class
java.lang.Object testFor(java.lang.Class serviceClass)
serviceClass
- The service class
Groovy Documentation