Package com.mickaelb.integration.spring
Class HibernateAssertTestListener
- java.lang.Object
-
- com.mickaelb.integration.spring.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 Summary
Constructors Constructor Description HibernateAssertTestListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterTestMethod(org.springframework.test.context.TestContext testContext)voidbeforeTestClass(org.springframework.test.context.TestContext testContext)voidbeforeTestMethod(org.springframework.test.context.TestContext testContext)intgetOrder()Low precedence for executing beforeTransactionalTestExecutionListenercloses the transaction and to have the ability to flush the EntityManagervoidsetTestListeners(List<AssertTestListener> testListeners)
-
-
-
Method Detail
-
beforeTestClass
public void beforeTestClass(org.springframework.test.context.TestContext testContext)
- Specified by:
beforeTestClassin interfaceorg.springframework.test.context.TestExecutionListener
-
beforeTestMethod
public void beforeTestMethod(org.springframework.test.context.TestContext testContext)
- Specified by:
beforeTestMethodin interfaceorg.springframework.test.context.TestExecutionListener
-
afterTestMethod
public void afterTestMethod(org.springframework.test.context.TestContext testContext)
- Specified by:
afterTestMethodin interfaceorg.springframework.test.context.TestExecutionListener
-
getOrder
public int getOrder()
Low precedence for executing beforeTransactionalTestExecutionListenercloses the transaction and to have the ability to flush the EntityManager- Specified by:
getOrderin interfaceorg.springframework.core.Ordered
-
setTestListeners
public void setTestListeners(List<AssertTestListener> testListeners)
-
-