Class 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
      void afterCleanupTest​(io.micronaut.test.context.TestContext testContext)  
      void afterSetupTest​(io.micronaut.test.context.TestContext testContext)  
      void afterTestExecution​(io.micronaut.test.context.TestContext testContext)  
      void beforeCleanupTest​(io.micronaut.test.context.TestContext testContext)  
      void beforeSetupTest​(io.micronaut.test.context.TestContext testContext)  
      void beforeTestExecution​(io.micronaut.test.context.TestContext testContext)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface io.micronaut.test.context.TestExecutionListener

        afterTestClass, afterTestMethod, beforeTestClass, beforeTestMethod
    • Method Detail

      • beforeSetupTest

        public void beforeSetupTest​(io.micronaut.test.context.TestContext testContext)
                             throws java.lang.Exception
        Specified by:
        beforeSetupTest in interface io.micronaut.test.context.TestExecutionListener
        Throws:
        java.lang.Exception
      • afterSetupTest

        public void afterSetupTest​(io.micronaut.test.context.TestContext testContext)
                            throws java.lang.Exception
        Specified by:
        afterSetupTest in interface io.micronaut.test.context.TestExecutionListener
        Throws:
        java.lang.Exception
      • beforeCleanupTest

        public void beforeCleanupTest​(io.micronaut.test.context.TestContext testContext)
                               throws java.lang.Exception
        Specified by:
        beforeCleanupTest in interface io.micronaut.test.context.TestExecutionListener
        Throws:
        java.lang.Exception
      • afterCleanupTest

        public void afterCleanupTest​(io.micronaut.test.context.TestContext testContext)
                              throws java.lang.Exception
        Specified by:
        afterCleanupTest in interface io.micronaut.test.context.TestExecutionListener
        Throws:
        java.lang.Exception
      • beforeTestExecution

        public void beforeTestExecution​(io.micronaut.test.context.TestContext testContext)
                                 throws java.lang.Exception
        Specified by:
        beforeTestExecution in interface io.micronaut.test.context.TestExecutionListener
        Throws:
        java.lang.Exception
      • afterTestExecution

        public void afterTestExecution​(io.micronaut.test.context.TestContext testContext)
                                throws java.lang.Exception
        Specified by:
        afterTestExecution in interface io.micronaut.test.context.TestExecutionListener
        Throws:
        java.lang.Exception