Package org.opennms.core.collection.test
Class JUnitCollectorExecutionListener
- java.lang.Object
-
- org.springframework.test.context.support.AbstractTestExecutionListener
-
- org.opennms.core.collection.test.JUnitCollectorExecutionListener
-
- All Implemented Interfaces:
org.springframework.core.Ordered
,org.springframework.test.context.TestExecutionListener
public class JUnitCollectorExecutionListener extends org.springframework.test.context.support.AbstractTestExecutionListener
This
TestExecutionListener
looks for theJUnitCollector
annotation and uses attributes on it to:- Load configuration files for the
ServiceCollector
- Set up
FileAnticipator
checks for files created during the unit test execution
-
-
Constructor Summary
Constructors Constructor Description JUnitCollectorExecutionListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
afterTestMethod(org.springframework.test.context.TestContext testContext)
void
beforeTestMethod(org.springframework.test.context.TestContext testContext)
-
-
-
Method Detail
-
beforeTestMethod
public void beforeTestMethod(org.springframework.test.context.TestContext testContext) throws java.lang.Exception
- Specified by:
beforeTestMethod
in interfaceorg.springframework.test.context.TestExecutionListener
- Overrides:
beforeTestMethod
in classorg.springframework.test.context.support.AbstractTestExecutionListener
- Throws:
java.lang.Exception
-
afterTestMethod
public void afterTestMethod(org.springframework.test.context.TestContext testContext) throws java.lang.Exception
- Specified by:
afterTestMethod
in interfaceorg.springframework.test.context.TestExecutionListener
- Overrides:
afterTestMethod
in classorg.springframework.test.context.support.AbstractTestExecutionListener
- Throws:
java.lang.Exception
-
-