components/src/test/java/eu/internetofus/common/components/models/CommunityProfileTest.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 community profile.
   */
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 community profile.
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 community profile .
public Future<CommunityProfile> createModelExampleWithTaskTypes(final int index, final Vertx vertx,
      final VertxTestContext testContext) {
    return this.createModelExample(index, vertx, testContext)
        .compose(model -> StoreServices.storeTaskType(new TaskType(), vertx, testContext).map(storedTaskType -> {
          model.taskTypeIds = new ArrayList<>();
          model.taskTypeIds.add(storedTaskType.id);
          return model;
        })).compose(model -> StoreServices.storeTaskType(new TaskType(), vertx, testContext).map(storedTaskType -> {
          model.taskTypeIds.add(storedTaskType.id);
          return model;
        })).compose(model -> StoreServices.storeTaskType(new TaskType(), vertx, testContext).map(storedTaskType -> {
          model.taskTypeIds.add(storedTaskType.id);
          return model;
        }));
  }
public Future < CommunityProfile > createModelExampleWithTaskTypes ( final int index , final Vertx vertx , final VertxTestContext testContext ) { return this . createModelExample ( index , vertx , testContext ) . compose ( model -> StoreServices . storeTaskType ( new TaskType ( ) , vertx , testContext ) . map ( storedTaskType -> { model . taskTypeIds = new ArrayList < > ( ) ; model . taskTypeIds . add ( storedTaskType . id ) ; return model ; } ) ) . compose ( model -> StoreServices . storeTaskType ( new TaskType ( ) , vertx , testContext ) . map ( storedTaskType -> { model . taskTypeIds . add ( storedTaskType . id ) ; return model ; } ) ) . compose ( model -> StoreServices . storeTaskType ( new TaskType ( ) , vertx , testContext ) . map ( storedTaskType -> { model . taskTypeIds . add ( storedTaskType . id ) ; return model ; } ) ) ; }
Create an example model that has the specified index.
Create an example model that has the specified index .