org.opennms.core.test
Class JUnitHttpServerExecutionListener
java.lang.Object
org.springframework.test.context.support.AbstractTestExecutionListener
org.opennms.core.test.OpenNMSAbstractTestExecutionListener
org.opennms.core.test.JUnitHttpServerExecutionListener
- All Implemented Interfaces:
- org.springframework.test.context.TestExecutionListener
public class JUnitHttpServerExecutionListener
- extends OpenNMSAbstractTestExecutionListener
This TestExecutionListener looks for the JUnitHttpServer annotation
and uses attributes on it to launch a temporary HTTP server for use during unit tests.
- Version:
- $Id: $
- Author:
- ranger
|
Method Summary |
void |
afterTestMethod(org.springframework.test.context.TestContext testContext)
|
void |
beforeTestMethod(org.springframework.test.context.TestContext testContext)
|
| Methods inherited from class org.springframework.test.context.support.AbstractTestExecutionListener |
afterTestClass, beforeTestClass, prepareTestInstance |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JUnitHttpServerExecutionListener
public JUnitHttpServerExecutionListener()
beforeTestMethod
public void beforeTestMethod(org.springframework.test.context.TestContext testContext)
throws Exception
-
- Specified by:
beforeTestMethod in interface org.springframework.test.context.TestExecutionListener- Overrides:
beforeTestMethod in class OpenNMSAbstractTestExecutionListener
- Throws:
Exception
afterTestMethod
public void afterTestMethod(org.springframework.test.context.TestContext testContext)
throws Exception
-
- Specified by:
afterTestMethod in interface org.springframework.test.context.TestExecutionListener- Overrides:
afterTestMethod in class OpenNMSAbstractTestExecutionListener
- Throws:
Exception
Copyright © 2011. All Rights Reserved.