jadler-core/src/main/java/net/jadler/JadlerMocker.java
@Override
    public void close() {
        if (!this.started) {
            throw new IllegalStateException("The stub server hasn't been started yet.");
        }
        
        logger.debug("stopping the underlying stub server...");
        
        try {
            server.stop();
        } catch (final Exception ex) {
            throw new JadlerException("Stub http server shutdown failure", ex);
        }
        this.started = false;
    }
@Override
    public void close() {
        if (!this.started) {
            throw new IllegalStateException("The stub server hasn't been started yet.");
        }
        
        logger.debug("stopping the underlying stub server...");
        
        try {
            server.stop();
        } catch (final Exception ex) {
            throw new JadlerException("Stub http server shutdown failure", ex);
        }
        this.started = false;
    }
@ Override public void close ( ) { if ( ! this . started ) { throw new IllegalStateException ( "The stub server hasn't been started yet." ) ; } logger . debug ( "stopping the underlying stub server..." ) ; try { server . stop ( ) ; } catch ( final Exception ex ) { throw new JadlerException ( "Stub http server shutdown failure" , ex ) ; } this . started = false ; }
{@inheritDoc}
{