public class JUnitDNSServerExecutionListener extends OpenNMSAbstractTestExecutionListener
TestExecutionListener
looks for the JUnitDNSServer
annotation
and uses attributes on it to launch a temporary HTTP server for use during unit tests.Constructor and Description |
---|
JUnitDNSServerExecutionListener() |
Modifier and Type | Method and Description |
---|---|
void |
afterTestMethod(org.springframework.test.context.TestContext testContext) |
void |
beforeTestMethod(org.springframework.test.context.TestContext testContext) |
findTestAnnotation
public void beforeTestMethod(org.springframework.test.context.TestContext testContext) throws Exception
beforeTestMethod
in interface org.springframework.test.context.TestExecutionListener
beforeTestMethod
in class OpenNMSAbstractTestExecutionListener
Exception
public void afterTestMethod(org.springframework.test.context.TestContext testContext) throws Exception
afterTestMethod
in interface org.springframework.test.context.TestExecutionListener
afterTestMethod
in class OpenNMSAbstractTestExecutionListener
Exception
Copyright © 2016. All rights reserved.