|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | PROPERTY | CONSTR | METHOD | DETAIL: FIELD | PROPERTY | CONSTR | METHOD |
java.lang.Objectgrails.test.mixin.integration.IntegrationTestMixin
@groovy.transform.CompileStatic class IntegrationTestMixin extends java.lang.Object
A mixin for enhancing integration tests with autowiring and transactional capabitities
Property Summary | |
---|---|
GrailsTestInterceptor |
interceptor
|
java.lang.Object |
target
|
Method Summary | |
---|---|
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 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() |
Property Detail |
---|
GrailsTestInterceptor interceptor
java.lang.Object target
Method Detail |
---|
@org.junit.After void destoryIntegrationTest()
@org.junit.Before void initIntegrationTest()
@groovy.transform.CompileStatic(TypeCheckingMode.SKIP) void setTarget(java.lang.Object target)
java.lang.String shouldFail(groovy.lang.Closure code)
java.lang.String shouldFail(java.lang.Class clazz, groovy.lang.Closure code)
clazz
- the class of the expected exceptioncode
- the closure that should fail
Groovy Documentation