components/src/test/java/eu/internetofus/common/components/models/IncentiveTest.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 incentive.
   */
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 incentive.
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 incentive .
public Future<Incentive> createModelExample(final int index, final Vertx vertx, final VertxTestContext testContext) {
    return testContext
        .assertComplete(StoreServices.storeProfile(new WeNetUserProfile(), vertx, testContext).compose(profile -> {
          return StoreServices.storeApp(new App(), vertx, testContext).compose(app -> {
            final var model = this.createModelExample(index);
            model.UserId = profile.id;
            model.AppID = app.appId;
            return Future.succeededFuture(model);
          });
        }));
  }
public Future < Incentive > createModelExample ( final int index , final Vertx vertx , final VertxTestContext testContext ) { return testContext . assertComplete ( StoreServices . storeProfile ( new WeNetUserProfile ( ) , vertx , testContext ) . compose ( profile -> { return StoreServices . storeApp ( new App ( ) , vertx , testContext ) . compose ( app -> { final var model = this . createModelExample ( index ) ; model . UserId = profile . id ; model . AppID = app . appId ; return Future . succeededFuture ( model ) ; } ) ; } ) ) ; }
Create an example model that has the specified index.
Create an example model that has the specified index .