components/src/test/java/eu/internetofus/common/components/AbstractComponentMocker.java
/**
   * Stop the started server.
   *
   * @return a future completed with the stop result.
   */
Stop the started server.
@return a future completed with the stop result.
Stop the started server . @return a future completed with the stop result .
public Future<Void> stopServer() {
    if (this.isServerStarted()) {
      return this.server.close().compose(map -> {
        AbstractComponentMocker.this.server = null;
        return Future.succeededFuture();
      });
    } else {
      return Future.failedFuture("Server not started");
    }
  }
public Future < Void > stopServer ( ) { if ( this . isServerStarted ( ) ) { return this . server . close ( ) . compose ( map -> { AbstractComponentMocker . this . server = null ; return Future . succeededFuture ( ) ; } ) ; } else { return Future . failedFuture ( "Server not started" ) ; } }
Stop the started server.
Stop the started server .