Package org.fcrepo.integration.http.api
Class TestIsolationExecutionListener
- java.lang.Object
-
- org.springframework.test.context.support.AbstractTestExecutionListener
-
- org.fcrepo.integration.http.api.BaseTestExecutionListener
-
- org.fcrepo.integration.http.api.TestIsolationExecutionListener
-
- All Implemented Interfaces:
org.springframework.core.Ordered,org.springframework.test.context.TestExecutionListener
public class TestIsolationExecutionListener extends BaseTestExecutionListener
Listener that baselines the DB and OCFL repo between every test. It does not baseline on Windows due to difficulties associated with deleting and immediately recreating directories.- Author:
- pwinckles
-
-
Constructor Summary
Constructors Constructor Description TestIsolationExecutionListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterTestMethod(org.springframework.test.context.TestContext testContext)-
Methods inherited from class org.fcrepo.integration.http.api.BaseTestExecutionListener
cleanDb, getBean, getBean
-
-
-
-
Constructor Detail
-
TestIsolationExecutionListener
public TestIsolationExecutionListener()
-
-
Method Detail
-
afterTestMethod
public void afterTestMethod(org.springframework.test.context.TestContext testContext) throws Exception
- Specified by:
afterTestMethodin interfaceorg.springframework.test.context.TestExecutionListener- Overrides:
afterTestMethodin classorg.springframework.test.context.support.AbstractTestExecutionListener- Throws:
Exception
-
-