@groovy.transform.CompileStatic class IntegrationTestMixin extends java.lang.Object
A mixin for enhancing integration tests with autowiring and transactional capabitities
Type | Name and description |
---|---|
GrailsTestInterceptor |
interceptor |
java.lang.Object |
target |
Type | Name and description |
---|---|
void |
destoryIntegrationTest() |
void |
initIntegrationTest() |
void |
setTarget(java.lang.Object target) |
java.lang.String |
shouldFail(groovy.lang.Closure code) Asserts that the given code closure fails when it is evaluated |
java.lang.String |
shouldFail(java.lang.Class clazz, groovy.lang.Closure code) Asserts that the given code closure fails when it is evaluated and that a particular exception is thrown. |
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() |
Asserts that the given code closure fails when it is evaluated
Asserts that the given code closure fails when it is evaluated and that a particular exception is thrown.
clazz
- the class of the expected exceptioncode
- the closure that should fail