Class TransactionRunListener


  • public class TransactionRunListener
    extends org.junit.runner.notification.RunListener
    Listener which will start a transaction before each test and will rollback it when test is finished. Transactional support will only be enabled if the test class or method is annotated with Transactional.
    Since:
    3.0-u3
    See Also:
    Transactional
    • Nested Class Summary

      • Nested classes/interfaces inherited from class org.junit.runner.notification.RunListener

        org.junit.runner.notification.RunListener.ThreadSafe
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void testFinished​(org.junit.runner.Description description)  
      void testStarted​(org.junit.runner.Description description)  
      • Methods inherited from class org.junit.runner.notification.RunListener

        testAssumptionFailure, testFailure, testIgnored, testRunFinished, testRunStarted
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TransactionRunListener

        public TransactionRunListener()
    • Method Detail

      • testStarted

        public void testStarted​(org.junit.runner.Description description)
                         throws java.lang.Exception
        Overrides:
        testStarted in class org.junit.runner.notification.RunListener
        Throws:
        java.lang.Exception
      • testFinished

        public void testFinished​(org.junit.runner.Description description)
                          throws java.lang.Exception
        Overrides:
        testFinished in class org.junit.runner.notification.RunListener
        Throws:
        java.lang.Exception