protocols/src/test/java/eu/internetofus/common/protocols/AbstractProtocolITC.java
/**
   * Create the users that will be used on the tests.
   *
   * @param vertx       event bus to use.
   * @param testContext context to do the test.
   */
Create the users that will be used on the tests.
@param vertx       event bus to use.
@param testContext context to do the test.
Create the users that will be used on the tests . @param vertx event bus to use . @param testContext context to do the test .
@Test
  @Order(1)
  public void shouldCreateUsers(final Vertx vertx, final VertxTestContext testContext) {
    this.assertLastSuccessfulTestWas(0, testContext);
    @SuppressWarnings("rawtypes")
    final List<Future> futures = new ArrayList<>();
    final var max = this.numberOfUsersToCreate();
    for (var i = 0; i < max; i++) {
      this.users.add(new WeNetUserProfile());
      final var index = i;
      futures.add(this.createProfileFor(index, vertx, testContext).map(createdUser -> {
        this.users.set(index, createdUser);
        return null;
      }));
    }
    CompositeFuture.all(futures).onFailure(error -> testContext.failNow(error))
        .onSuccess(any -> this.assertSuccessfulCompleted(testContext));
  }
@ Test @ Order ( 1 ) public void shouldCreateUsers ( final Vertx vertx , final VertxTestContext testContext ) { this . assertLastSuccessfulTestWas ( 0 , testContext ) ; @ SuppressWarnings ( "rawtypes" ) final List < Future > futures = new ArrayList < > ( ) ; final var max = this . numberOfUsersToCreate ( ) ; for ( var i = 0 ; i < max ; i ++ ) { this . users . add ( new WeNetUserProfile ( ) ) ; final var index = i ; futures . add ( this . createProfileFor ( index , vertx , testContext ) . map ( createdUser -> { this . users . set ( index , createdUser ) ; return null ; } ) ) ; } CompositeFuture . all ( futures ) . onFailure ( error -> testContext . failNow ( error ) ) . onSuccess ( any -> this . assertSuccessfulCompleted ( testContext ) ) ; }
Create the users that will be used on the tests.
Create the users that will be used on the tests .