mockserver-client-java/src/main/java/org/mockserver/client/MockServerClient.java
public void stop() {
        try {
            stopAsync().get(10, SECONDS);
        } catch (Throwable throwable) {
            MOCK_SERVER_LOGGER.logEvent(
                new LogEntry()
                    .setLogLevel(DEBUG)
                    .setMessageFormat("exception while stopping - " + throwable.getMessage())
                    .setThrowable(throwable)
            );
        }
    }
/**
     * Stop MockServer gracefully (only support for Netty version, not supported for WAR version)
     */
Stop MockServer gracefully (only support for Netty version, not supported for WAR version)
Stop MockServer gracefully ( only support for Netty version not supported for WAR version )
public void stop() {
        try {
            stopAsync().get(10, SECONDS);
        } catch (Throwable throwable) {
            MOCK_SERVER_LOGGER.logEvent(
                new LogEntry()
                    .setLogLevel(DEBUG)
                    .setMessageFormat("exception while stopping - " + throwable.getMessage())
                    .setThrowable(throwable)
            );
        }
    }
public void stop ( ) { try { stopAsync ( ) . get ( 10 , SECONDS ) ; } catch ( Throwable throwable ) { MOCK_SERVER_LOGGER . logEvent ( new LogEntry ( ) . setLogLevel ( DEBUG ) . setMessageFormat ( "exception while stopping - " + throwable . getMessage ( ) ) . setThrowable ( throwable ) ) ; } }
Stop MockServer gracefully (only support for Netty version, not supported for WAR version)
Stop MockServer gracefully ( only support for Netty version not supported for WAR version )