components/src/test/java/eu/internetofus/common/components/models/MessageTest.java
/**
   * Create an example model that has the specified index.
   *
   * @param index       to use in the example.
   * @param vertx       event bus to use.
   * @param testContext test context to use.
   *
   * @return the created message.
   */
Create an example model that has the specified index.
@param index       to use in the example.
@param vertx       event bus to use.
@param testContext test context to use.

@return the created message.
Create an example model that has the specified index . @param index to use in the example . @param vertx event bus to use . @param testContext test context to use . @return the created message .
public Future<Message> createModelExample(final int index, final Vertx vertx, final VertxTestContext testContext) {
    final var model = this.createModelExample(index);
    return StoreServices.storeApp(new App(), vertx, testContext).compose(app -> {
      model.appId = app.appId;
      return StoreServices.storeProfile(new WeNetUserProfile(), vertx, testContext);
    }).compose(profile -> {
      model.receiverId = profile.id;
      return Future.succeededFuture(model);
    });
  }
public Future < Message > createModelExample ( final int index , final Vertx vertx , final VertxTestContext testContext ) { final var model = this . createModelExample ( index ) ; return StoreServices . storeApp ( new App ( ) , vertx , testContext ) . compose ( app -> { model . appId = app . appId ; return StoreServices . storeProfile ( new WeNetUserProfile ( ) , vertx , testContext ) ; } ) . compose ( profile -> { model . receiverId = profile . id ; return Future . succeededFuture ( model ) ; } ) ; }
Create an example model that has the specified index.
Create an example model that has the specified index .