public class JUnitHttpServerExecutionListener extends OpenNMSAbstractTestExecutionListener
TestExecutionListener
looks for the JUnitHttpServer
annotation
and uses attributes on it to launch a temporary HTTP server for use during unit tests.Constructor and Description |
---|
JUnitHttpServerExecutionListener() |
Modifier and Type | Method and Description |
---|---|
void |
afterTestMethod(org.springframework.test.context.TestContext testContext) |
void |
beforeTestMethod(org.springframework.test.context.TestContext testContext) |
static int |
getPort() |
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
public static int getPort()
Copyright © 2020. All rights reserved.