Package org.fcrepo.integration.http.api
Class DirtyContextBeforeAndAfterClassTestExecutionListener
- java.lang.Object
-
- org.springframework.test.context.support.AbstractTestExecutionListener
-
- org.fcrepo.integration.http.api.DirtyContextBeforeAndAfterClassTestExecutionListener
-
- All Implemented Interfaces:
org.springframework.core.Ordered,org.springframework.test.context.TestExecutionListener
public class DirtyContextBeforeAndAfterClassTestExecutionListener extends org.springframework.test.context.support.AbstractTestExecutionListener
TestExecutionListener which marks the context as dirty before and after the test class. Based on example from https://stackoverflow.com/questions/39277040/- Author:
- bbpennel
-
-
Constructor Summary
Constructors Constructor Description DirtyContextBeforeAndAfterClassTestExecutionListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterTestClass(org.springframework.test.context.TestContext testContext)voidbeforeTestClass(org.springframework.test.context.TestContext testContext)intgetOrder()
-
-
-
Constructor Detail
-
DirtyContextBeforeAndAfterClassTestExecutionListener
public DirtyContextBeforeAndAfterClassTestExecutionListener()
-
-
Method Detail
-
getOrder
public int getOrder()
- Specified by:
getOrderin interfaceorg.springframework.core.Ordered- Overrides:
getOrderin classorg.springframework.test.context.support.AbstractTestExecutionListener
-
beforeTestClass
public void beforeTestClass(org.springframework.test.context.TestContext testContext)
- Specified by:
beforeTestClassin interfaceorg.springframework.test.context.TestExecutionListener- Overrides:
beforeTestClassin classorg.springframework.test.context.support.AbstractTestExecutionListener
-
afterTestClass
public void afterTestClass(org.springframework.test.context.TestContext testContext)
- Specified by:
afterTestClassin interfaceorg.springframework.test.context.TestExecutionListener- Overrides:
afterTestClassin classorg.springframework.test.context.support.AbstractTestExecutionListener
-
-