protocols/src/test/java/eu/internetofus/common/protocols/AbstractProtocolITC.java
/**
   * Create the app that will be used on the tests.
   *
   * @param vertx       event bus to use.
   * @param testContext context to do the test.
   */
Create the app that will be used on the tests.
@param vertx       event bus to use.
@param testContext context to do the test.
Create the app that will be used on the tests . @param vertx event bus to use . @param testContext context to do the test .
@Test
  @Order(2)
  public void shouldCreateApp(final Vertx vertx, final VertxTestContext testContext) {
    this.assertLastSuccessfulTestWas(1, testContext);
    WeNetServiceSimulator.createProxy(vertx).createApp(this.createApp()).compose(addedApp -> {
      this.app = addedApp;
      final var appUsers = new JsonArray();
      for (final WeNetUserProfile profile : this.users) {
        appUsers.add(profile.id);
      }
      return WeNetServiceSimulator.createProxy(vertx).addUsers(addedApp.appId, appUsers);
    }).onComplete(testContext.succeeding(added -> this.assertSuccessfulCompleted(testContext)));
  }
@ Test @ Order ( 2 ) public void shouldCreateApp ( final Vertx vertx , final VertxTestContext testContext ) { this . assertLastSuccessfulTestWas ( 1 , testContext ) ; WeNetServiceSimulator . createProxy ( vertx ) . createApp ( this . createApp ( ) ) . compose ( addedApp -> { this . app = addedApp ; final var appUsers = new JsonArray ( ) ; for ( final WeNetUserProfile profile : this . users ) { appUsers . add ( profile . id ) ; } return WeNetServiceSimulator . createProxy ( vertx ) . addUsers ( addedApp . appId , appUsers ) ; } ) . onComplete ( testContext . succeeding ( added -> this . assertSuccessfulCompleted ( testContext ) ) ) ; }
Create the app that will be used on the tests.
Create the app that will be used on the tests .