Class StubRunnerWireMockTestExecutionListener
java.lang.Object
org.springframework.test.context.support.AbstractTestExecutionListener
org.springframework.cloud.contract.stubrunner.provider.wiremock.StubRunnerWireMockTestExecutionListener
- All Implemented Interfaces:
org.springframework.core.Ordered,org.springframework.test.context.TestExecutionListener
public final class StubRunnerWireMockTestExecutionListener
extends org.springframework.test.context.support.AbstractTestExecutionListener
Marks context to be restarted if at least one stub has a fixed port.
- Since:
- 1.2.6
- Author:
- Marcin Grzejszczak
-
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) Methods inherited from class org.springframework.test.context.support.AbstractTestExecutionListener
afterTestExecution, afterTestMethod, beforeTestClass, beforeTestExecution, beforeTestMethod, getOrder, prepareTestInstance
-
Constructor Details
-
StubRunnerWireMockTestExecutionListener
public StubRunnerWireMockTestExecutionListener()
-
-
Method Details
-
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
-