Class HibernateAssertTestListener

  • All Implemented Interfaces:
    org.springframework.core.Ordered, org.springframework.test.context.TestExecutionListener

    public class HibernateAssertTestListener
    extends Object
    implements org.springframework.test.context.TestExecutionListener, org.springframework.core.Ordered
    • Constructor Detail

      • HibernateAssertTestListener

        public HibernateAssertTestListener()
    • Method Detail

      • beforeTestClass

        public void beforeTestClass​(org.springframework.test.context.TestContext testContext)
        Specified by:
        beforeTestClass in interface org.springframework.test.context.TestExecutionListener
      • beforeTestMethod

        public void beforeTestMethod​(org.springframework.test.context.TestContext testContext)
        Specified by:
        beforeTestMethod in interface org.springframework.test.context.TestExecutionListener
      • afterTestMethod

        public void afterTestMethod​(org.springframework.test.context.TestContext testContext)
        Specified by:
        afterTestMethod in interface org.springframework.test.context.TestExecutionListener
      • getOrder

        public int getOrder()
        Low precedence for executing before TransactionalTestExecutionListener closes the transaction and to have the ability to flush the EntityManager
        Specified by:
        getOrder in interface org.springframework.core.Ordered