components/src/test/java/eu/internetofus/common/components/service/WeNetServiceSimulators.java
/**
   * Create the APP for the test.
   *
   * @param users       to be defined on the App.
   * @param vertx       event bus to use.
   * @param testContext context to do the test.
   *
   * @return the future that will return the created users.
   */
Create the APP for the test.
@param users       to be defined on the App.
@param vertx       event bus to use.
@param testContext context to do the test.

@return the future that will return the created users.
Create the APP for the test . @param users to be defined on the App . @param vertx event bus to use . @param testContext context to do the test . @return the future that will return the created users .
static Future<App> createApp(final List<WeNetUserProfile> users, final Vertx vertx,
      final VertxTestContext testContext) {
    final Promise<App> promise = Promise.promise();
    StoreServices.storeApp(new App(), vertx, testContext).onSuccess(app -> {
      final var appUsers = new JsonArray();
      for (final WeNetUserProfile profile : users) {
        appUsers.add(profile.id);
      }
      WeNetServiceSimulator.createProxy(vertx).addUsers(app.appId, appUsers,
          testContext.succeeding(added -> promise.complete(app)));
    });
    return promise.future();
  }
static Future < App > createApp ( final List < WeNetUserProfile > users , final Vertx vertx , final VertxTestContext testContext ) { final Promise < App > promise = Promise . promise ( ) ; StoreServices . storeApp ( new App ( ) , vertx , testContext ) . onSuccess ( app -> { final var appUsers = new JsonArray ( ) ; for ( final WeNetUserProfile profile : users ) { appUsers . add ( profile . id ) ; } WeNetServiceSimulator . createProxy ( vertx ) . addUsers ( app . appId , appUsers , testContext . succeeding ( added -> promise . complete ( app ) ) ) ; } ) ; return promise . future ( ) ; }
Create the APP for the test.
Create the APP for the test .