Package io.micronaut.transaction.test
Class DefaultTestTransactionExecutionListener
- java.lang.Object
-
- io.micronaut.transaction.test.DefaultTestTransactionExecutionListener
-
- All Implemented Interfaces:
io.micronaut.test.context.TestExecutionListener
@EachBean(SynchronousTransactionManager.class) @Requires(classes=io.micronaut.test.context.TestExecutionListener.class) @Requires(property="micronaut.test.transactional",value="true",defaultValue="true") @Replaces(io.micronaut.spring.tx.test.SpringTransactionTestExecutionListener.class) @Internal public class DefaultTestTransactionExecutionListener extends java.lang.Object implements io.micronaut.test.context.TestExecutionListener
Adds support for MicronautTest transactional handling.- Since:
- 1.0.0
- Author:
- graemerocher
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterCleanupTest(io.micronaut.test.context.TestContext testContext)voidafterSetupTest(io.micronaut.test.context.TestContext testContext)voidafterTestExecution(io.micronaut.test.context.TestContext testContext)voidbeforeCleanupTest(io.micronaut.test.context.TestContext testContext)voidbeforeSetupTest(io.micronaut.test.context.TestContext testContext)voidbeforeTestExecution(io.micronaut.test.context.TestContext testContext)
-
-
-
Method Detail
-
beforeSetupTest
public void beforeSetupTest(io.micronaut.test.context.TestContext testContext) throws java.lang.Exception- Specified by:
beforeSetupTestin interfaceio.micronaut.test.context.TestExecutionListener- Throws:
java.lang.Exception
-
afterSetupTest
public void afterSetupTest(io.micronaut.test.context.TestContext testContext) throws java.lang.Exception- Specified by:
afterSetupTestin interfaceio.micronaut.test.context.TestExecutionListener- Throws:
java.lang.Exception
-
beforeCleanupTest
public void beforeCleanupTest(io.micronaut.test.context.TestContext testContext) throws java.lang.Exception- Specified by:
beforeCleanupTestin interfaceio.micronaut.test.context.TestExecutionListener- Throws:
java.lang.Exception
-
afterCleanupTest
public void afterCleanupTest(io.micronaut.test.context.TestContext testContext) throws java.lang.Exception- Specified by:
afterCleanupTestin interfaceio.micronaut.test.context.TestExecutionListener- Throws:
java.lang.Exception
-
beforeTestExecution
public void beforeTestExecution(io.micronaut.test.context.TestContext testContext) throws java.lang.Exception- Specified by:
beforeTestExecutionin interfaceio.micronaut.test.context.TestExecutionListener- Throws:
java.lang.Exception
-
afterTestExecution
public void afterTestExecution(io.micronaut.test.context.TestContext testContext) throws java.lang.Exception- Specified by:
afterTestExecutionin interfaceio.micronaut.test.context.TestExecutionListener- Throws:
java.lang.Exception
-
-