components/src/test/java/eu/internetofus/common/components/models/TaskTest.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 task.
   */
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 task.
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 task .
public Future<Task> createModelExample(final int index, final Vertx vertx, final VertxTestContext testContext) {
    return testContext.assertComplete(StoreServices.storeTaskTypeExample(index, vertx, testContext)
        .compose(taskType -> StoreServices.storeCommunityExample(index, vertx, testContext).compose(community -> {
          final var model = this.createModelExample(index);
          model.transactions = null;
          model.requesterId = community.members.get(0).userId;
          model.taskTypeId = taskType.id;
          model.appId = community.appId;
          model.communityId = community.id;
          return Future.succeededFuture(model);
        })));
  }
public Future < Task > createModelExample ( final int index , final Vertx vertx , final VertxTestContext testContext ) { return testContext . assertComplete ( StoreServices . storeTaskTypeExample ( index , vertx , testContext ) . compose ( taskType -> StoreServices . storeCommunityExample ( index , vertx , testContext ) . compose ( community -> { final var model = this . createModelExample ( index ) ; model . transactions = null ; model . requesterId = community . members . get ( 0 ) . userId ; model . taskTypeId = taskType . id ; model . appId = community . appId ; model . communityId = community . id ; return Future . succeededFuture ( model ) ; } ) ) ) ; }
Create an example model that has the specified index.
Create an example model that has the specified index .