@Configuration(proxyBeanMethods=false) @EnableConfigurationProperties(value=org.springframework.cloud.contract.wiremock.WireMockProperties.class) public class WireMockConfiguration extends Object implements org.springframework.context.SmartLifecycle
@AutoConfigureWireMock to a Spring Boot JUnit test. To
configure the properties of the wiremock server you can use the AutoConfigureWireMock
annotation, or add a bean of type Options (via
WireMockSpring.options()) to your test context.| Constructor and Description |
|---|
WireMockConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
int |
getPhase() |
void |
init() |
boolean |
isAutoStartup() |
boolean |
isRunning() |
void |
start() |
void |
stop() |
void |
stop(Runnable callback) |
@PostConstruct public void init() throws IOException
IOExceptionpublic void start()
start in interface org.springframework.context.Lifecyclepublic void stop()
stop in interface org.springframework.context.Lifecyclepublic boolean isRunning()
isRunning in interface org.springframework.context.Lifecyclepublic int getPhase()
getPhase in interface org.springframework.context.PhasedgetPhase in interface org.springframework.context.SmartLifecyclepublic boolean isAutoStartup()
isAutoStartup in interface org.springframework.context.SmartLifecyclepublic void stop(Runnable callback)
stop in interface org.springframework.context.SmartLifecycleCopyright © 2016–2021 Spring. All rights reserved.