components/src/test/java/eu/internetofus/common/components/models/TaskTransactionTest.java
/**
   * Create a valid task transaction example.
   *
   * @param index       of the example to create.
   * @param vertx       event bus to use.
   * @param testContext test context to use.
   *
   * @return a future with the created task transaction.
   *
   */
Create a valid task transaction example.
@param index       of the example to create.
@param vertx       event bus to use.
@param testContext test context to use.

@return a future with the created task transaction.
Create a valid task transaction example . @param index of the example to create . @param vertx event bus to use . @param testContext test context to use . @return a future with the created task transaction .
public Future<TaskTransaction> createModelExample(final int index, final Vertx vertx,
      final VertxTestContext testContext) {
    return StoreServices.storeTaskExample(index, vertx, testContext).compose(task -> {
      final var model = this.createModelExample(index);
      model.taskId = task.id;
      model.actioneerId = task.requesterId;
      model.label = "t_one";
      model.attributes = new JsonObject().put("index", index);
      return Future.succeededFuture(model);
    });
  }
public Future < TaskTransaction > createModelExample ( final int index , final Vertx vertx , final VertxTestContext testContext ) { return StoreServices . storeTaskExample ( index , vertx , testContext ) . compose ( task -> { final var model = this . createModelExample ( index ) ; model . taskId = task . id ; model . actioneerId = task . requesterId ; model . label = "t_one" ; model . attributes = new JsonObject ( ) . put ( "index" , index ) ; return Future . succeededFuture ( model ) ; } ) ; }
Create a valid task transaction example.
Create a valid task transaction example .