org.mockserver.maven.MockServerRunAndWaitMojo Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mockserver-maven-plugin Show documentation
Show all versions of mockserver-maven-plugin Show documentation
A maven plugin to start and stop the MockServer
package org.mockserver.maven;
import org.apache.maven.plugins.annotations.Mojo;
import org.mockserver.client.initialize.ExpectationInitializer;
import org.mockserver.configuration.ConfigurationProperties;
import java.util.Arrays;
import java.util.concurrent.CompletableFuture;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.TimeoutException;
import static org.apache.commons.lang3.StringUtils.isNotBlank;
/**
* Run the MockServer and wait for a specified timeout (or indefinitely)
*
* @author jamesdbloom
*/
@SuppressWarnings("deprecation")
@Mojo(name = "run", requiresProject = false)
public class MockServerRunAndWaitMojo extends MockServerAbstractMojo {
// used to simplify waiting logic
@SuppressWarnings("FieldMayBeFinal")
private CompletableFuture
© 2015 - 2025 Weber Informatics LLC | Privacy Policy