Package org.opennms.core.test
Class TestContextAwareExecutionListener
- java.lang.Object
-
- org.springframework.test.context.support.AbstractTestExecutionListener
-
- org.opennms.core.test.TestContextAwareExecutionListener
-
- All Implemented Interfaces:
org.springframework.core.Ordered
,org.springframework.test.context.TestExecutionListener
public class TestContextAwareExecutionListener extends org.springframework.test.context.support.AbstractTestExecutionListener
This listener will inject theTestContext
into a test if it supports theTestContextAware
interface.
-
-
Constructor Summary
Constructors Constructor Description TestContextAwareExecutionListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
beforeTestMethod(org.springframework.test.context.TestContext testContext)
-
-
-
Method Detail
-
beforeTestMethod
public void beforeTestMethod(org.springframework.test.context.TestContext testContext) throws Exception
- Specified by:
beforeTestMethod
in interfaceorg.springframework.test.context.TestExecutionListener
- Overrides:
beforeTestMethod
in classorg.springframework.test.context.support.AbstractTestExecutionListener
- Throws:
Exception
-
-