use of com.github.tomakehurst.wiremock.common.Slf4jNotifier in project spring-cloud-contract by spring-cloud.
the class WireMockProperties method init.
@PostConstruct
public void init() throws IOException {
if (log.isDebugEnabled()) {
log.debug("Running initialization of the WireMock configuration");
}
if (this.options == null) {
com.github.tomakehurst.wiremock.core.WireMockConfiguration factory = WireMockSpring.options();
if (this.wireMock.getServer().getPort() != 8080) {
factory.port(this.wireMock.getServer().getPort());
}
if (this.wireMock.getServer().getHttpsPort() != -1) {
factory.httpsPort(this.wireMock.getServer().getHttpsPort());
}
registerFiles(factory);
factory.notifier(new Slf4jNotifier(true));
if (this.wireMock.getPlaceholders().isEnabled()) {
factory.extensions(new ResponseTemplateTransformer(false));
}
this.options = factory;
if (this.customizers != null) {
this.customizers.orderedStream().forEach(customizer -> customizer.customize(factory));
}
}
reRegisterServerWithResetMappings();
reRegisterBeans();
updateCurrentServer();
}
use of com.github.tomakehurst.wiremock.common.Slf4jNotifier in project bonita-connector-rest by bonitasoft.
the class AcceptanceTestBase method setupServer.
/**
* The setup of the WireMock server
*/
@BeforeClass
public static void setupServer() {
wireMockServer = new WireMockServer(WireMockConfiguration.wireMockConfig().port(0).notifier(new Slf4jNotifier(false)));
wireMockServer.start();
}
Aggregations