uk.co.automatictester.wiremock.maven.plugin.server.WireMockServer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of wiremock-maven-plugin Show documentation
Show all versions of wiremock-maven-plugin Show documentation
Run WireMock as part of Maven lifecycle
package uk.co.automatictester.wiremock.maven.plugin.server;
import com.github.tomakehurst.wiremock.standalone.WireMockServerRunner;
public class WireMockServer {
private static final WireMockServer INSTANCE = new WireMockServer();
private static final WireMockServerRunner WIREMOCK = new WireMockServerRunner();
private WireMockServer() {
}
public static WireMockServer getInstance() {
return INSTANCE;
}
public synchronized void run(String... params) {
WIREMOCK.run(params);
}
public synchronized void stop() {
WIREMOCK.stop();
}
}