vertx/src/test/java/eu/internetofus/common/vertx/AbstractWeNetIntegrationExtension.java
/**
   * Close all the clients that has been created on a context.
   *
   * @param context where the clients has stored.
   */
Close all the clients that has been created on a context.
@param context where the clients has stored.
Close all the clients that has been created on a context . @param context where the clients has stored .
protected void closeClientsIn(final ExtensionContext context) {
    final var client = context.getStore(ExtensionContext.Namespace.create(this.getClass().getName()))
        .remove(WebClient.class.getName(), WebClient.class);
    if (client != null) {
      client.close();
    }
    final var pool = context.getStore(ExtensionContext.Namespace.create(this.getClass().getName()))
        .remove(MongoClient.class.getName(), MongoClient.class);
    if (pool != null) {
      pool.close();
    }
  }
protected void closeClientsIn ( final ExtensionContext context ) { final var client = context . getStore ( ExtensionContext . Namespace . create ( this . getClass ( ) . getName ( ) ) ) . remove ( WebClient . class . getName ( ) , WebClient . class ) ; if ( client != null ) { client . close ( ) ; } final var pool = context . getStore ( ExtensionContext . Namespace . create ( this . getClass ( ) . getName ( ) ) ) . remove ( MongoClient . class . getName ( ) , MongoClient . class ) ; if ( pool != null ) { pool . close ( ) ; } }
Close all the clients that has been created on a context.
Close all the clients that has been created on a context .
// close client and pool after the test context has been completed.