@Configuration @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
IOException
public void start()
start
in interface org.springframework.context.Lifecycle
public void stop()
stop
in interface org.springframework.context.Lifecycle
public boolean isRunning()
isRunning
in interface org.springframework.context.Lifecycle
public int getPhase()
getPhase
in interface org.springframework.context.Phased
public boolean isAutoStartup()
isAutoStartup
in interface org.springframework.context.SmartLifecycle
public void stop(Runnable callback)
stop
in interface org.springframework.context.SmartLifecycle
Copyright © 2016–2018 Spring. All rights reserved.