Class WireMockTestExecutionListener
java.lang.Object
org.springframework.test.context.support.AbstractTestExecutionListener
org.springframework.cloud.contract.wiremock.WireMockTestExecutionListener
- All Implemented Interfaces:
org.springframework.core.Ordered,org.springframework.test.context.TestExecutionListener
public final class WireMockTestExecutionListener
extends org.springframework.test.context.support.AbstractTestExecutionListener
Dirties the test context if WireMock was running on a fixed port.
- Since:
- 1.2.6
- Author:
- Marcin Grzejszczak, Matt Garner, Waldemar Panas, Fabian Winter
-
Field Summary
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidafterTestClass(org.springframework.test.context.TestContext testContext) voidafterTestMethod(org.springframework.test.context.TestContext testContext) voidbeforeTestClass(org.springframework.test.context.TestContext testContext) Methods inherited from class org.springframework.test.context.support.AbstractTestExecutionListener
afterTestExecution, beforeTestExecution, beforeTestMethod, getOrder, prepareTestInstance
-
Constructor Details
-
WireMockTestExecutionListener
public WireMockTestExecutionListener()
-
-
Method Details
-
beforeTestClass
public void beforeTestClass(org.springframework.test.context.TestContext testContext) throws Exception - Specified by:
beforeTestClassin interfaceorg.springframework.test.context.TestExecutionListener- Overrides:
beforeTestClassin classorg.springframework.test.context.support.AbstractTestExecutionListener- Throws:
Exception
-
afterTestClass
public void afterTestClass(org.springframework.test.context.TestContext testContext) - Specified by:
afterTestClassin interfaceorg.springframework.test.context.TestExecutionListener- Overrides:
afterTestClassin classorg.springframework.test.context.support.AbstractTestExecutionListener
-
afterTestMethod
public void afterTestMethod(org.springframework.test.context.TestContext testContext) throws Exception - Specified by:
afterTestMethodin interfaceorg.springframework.test.context.TestExecutionListener- Overrides:
afterTestMethodin classorg.springframework.test.context.support.AbstractTestExecutionListener- Throws:
Exception
-