All Downloads are FREE. Search and download functionalities are using the official Maven repository.

uk.co.automatictester.wiremock.maven.plugin.mojo.WireMockStopMojo Maven / Gradle / Ivy

There is a newer version: 7.3.0
Show newest version
package uk.co.automatictester.wiremock.maven.plugin.mojo;

import org.apache.maven.plugins.annotations.LifecyclePhase;
import org.apache.maven.plugins.annotations.Mojo;
import uk.co.automatictester.wiremock.maven.plugin.server.WireMockServer;

@Mojo(name = "stop", defaultPhase = LifecyclePhase.POST_INTEGRATION_TEST)
public class WireMockStopMojo extends ConfigurationMojo {

    @Override
    public void execute() {
        getLog().info("Stopping WireMock...");
        WireMockServer wireMock = WireMockServer.getInstance();
        wireMock.stop();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy