@EachBean(value=TestTransactionInterceptor.class) @Requires(property="micronaut.test.transactional", value="true", defaultValue="true") public class TestTransactionInterceptorListener extends java.lang.Object implements TestExecutionListener
TestTransactionInterceptor
.Constructor and Description |
---|
TestTransactionInterceptorListener(TestTransactionInterceptor interceptor,
boolean rollback) |
Modifier and Type | Method and Description |
---|---|
void |
afterTestExecution(TestContext testContext)
Executed after a single test iteration has been executed .
|
void |
beforeTestExecution(TestContext testContext)
Executed before a single test iteration is executed.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
afterCleanupTest, afterSetupTest, afterTestClass, afterTestMethod, beforeCleanupTest, beforeSetupTest, beforeTestClass, beforeTestMethod
public TestTransactionInterceptorListener(TestTransactionInterceptor interceptor, @Property(name="micronaut.test.rollback") boolean rollback)
interceptor
- the interceptorrollback
- true
if the transaction should be rollbackpublic void afterTestExecution(TestContext testContext)
TestExecutionListener
afterTestExecution
in interface TestExecutionListener
testContext
- the test contextpublic void beforeTestExecution(TestContext testContext)
TestExecutionListener
beforeTestExecution
in interface TestExecutionListener
testContext
- the test context