components/src/test/java/eu/internetofus/common/components/models/RoutineTest.java
/**
   * Create a valid model example.
   *
   * @param index       of the example to create.
   * @param vertx       event bus to use.
   * @param testContext test context to use.
   *
   * @return the created routine.
   */
Create a valid model example.
@param index       of the example to create.
@param vertx       event bus to use.
@param testContext test context to use.

@return the created routine.
Create a valid model example . @param index of the example to create . @param vertx event bus to use . @param testContext test context to use . @return the created routine .
public Future<Routine> createModelExample(final int index, final Vertx vertx, final VertxTestContext testContext) {
    return StoreServices.storeProfileExample(index, vertx, testContext).compose(profile -> {
      final var model = this.createModelExample(index);
      model.user_id = profile.id;
      return Future.succeededFuture(model);
    });
  }
public Future < Routine > createModelExample ( final int index , final Vertx vertx , final VertxTestContext testContext ) { return StoreServices . storeProfileExample ( index , vertx , testContext ) . compose ( profile -> { final var model = this . createModelExample ( index ) ; model . user_id = profile . id ; return Future . succeededFuture ( model ) ; } ) ; }
Create a valid model example.
Create a valid model example .