Package org.opennms.core.test
Class OpenNMSAbstractTestExecutionListener
- java.lang.Object
-
- org.springframework.test.context.support.AbstractTestExecutionListener
-
- org.opennms.core.test.OpenNMSAbstractTestExecutionListener
-
- All Implemented Interfaces:
org.springframework.core.Ordered
,org.springframework.test.context.TestExecutionListener
- Direct Known Subclasses:
JUnitDNSServerExecutionListener
,JUnitHttpServerExecutionListener
public class OpenNMSAbstractTestExecutionListener extends org.springframework.test.context.support.AbstractTestExecutionListener
OpenNMSAbstractTestExecutionListener class.
- Version:
- $Id: $
- Author:
- ranger
-
-
Constructor Summary
Constructors Constructor Description OpenNMSAbstractTestExecutionListener()
-
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)
protected <T extends Annotation>
TfindTestAnnotation(Class<T> clazz, org.springframework.test.context.TestContext testContext)
findTestAnnotation
-
-
-
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
-
afterTestMethod
public void afterTestMethod(org.springframework.test.context.TestContext testContext) throws Exception
- Specified by:
afterTestMethod
in interfaceorg.springframework.test.context.TestExecutionListener
- Overrides:
afterTestMethod
in classorg.springframework.test.context.support.AbstractTestExecutionListener
- Throws:
Exception
-
findTestAnnotation
protected <T extends Annotation> T findTestAnnotation(Class<T> clazz, org.springframework.test.context.TestContext testContext)
findTestAnnotation
- Type Parameters:
T
- a T object.- Parameters:
clazz
- aClass
object.testContext
- aTestContext
object.- Returns:
- a T object.
-
-