use of com.github.tomakehurst.wiremock.http.ThreadPoolFactory in project sugoi-api by InseeFr.
the class WebhookReceiverService method startServer.
public static boolean startServer() {
WireMockServer webhookServer = new WireMockServer(WireMockConfiguration.wireMockConfig().port(8089).notifier(new Slf4jNotifier(true)).threadPoolFactory(new ThreadPoolFactory() {
@Override
public ThreadPool buildThreadPool(Options options) {
ThreadPool tp = new QueuedDaemonThreadPool(options.containerThreads());
return tp;
}
}));
webhookServer.start();
webhookServer.stubFor(post("/spoc/send").willReturn(aResponse().withStatus(200)));
return true;
}
Aggregations