public class JUnitSnmpAgentExecutionListener
extends org.springframework.test.context.support.AbstractTestExecutionListener
TestExecutionListener
looks for the JUnitSnmpAgent
annotation
and uses attributes on it to launch a mock SNMP agent for use during unit testing.Modifier and Type | Field and Description |
---|---|
static String |
IPADDRESS_KEY |
static String |
PORT_KEY |
Constructor and Description |
---|
JUnitSnmpAgentExecutionListener() |
Modifier and Type | Method and Description |
---|---|
void |
afterTestMethod(org.springframework.test.context.TestContext testContext) |
void |
beforeTestMethod(org.springframework.test.context.TestContext testContext) |
public static final String IPADDRESS_KEY
public static final String PORT_KEY
public void beforeTestMethod(org.springframework.test.context.TestContext testContext) throws Exception
beforeTestMethod
in interface org.springframework.test.context.TestExecutionListener
beforeTestMethod
in class org.springframework.test.context.support.AbstractTestExecutionListener
Exception
public void afterTestMethod(org.springframework.test.context.TestContext testContext) throws Exception
afterTestMethod
in interface org.springframework.test.context.TestExecutionListener
afterTestMethod
in class org.springframework.test.context.support.AbstractTestExecutionListener
Exception
Copyright © 2020. All rights reserved.