components/src/test/java/eu/internetofus/common/components/models/PlannedActivityTest.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 planned activity.
   */
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 planned activity.
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 planned activity .
public Future<PlannedActivity> createModelExample(final int index, final Vertx vertx,
      final VertxTestContext testContext) {
    return testContext
        .assertComplete(StoreServices.storeProfile(new WeNetUserProfile(), vertx, testContext).compose(profile -> {
          final var activity = this.createModelExample(index);
          activity.attendees = new ArrayList<>();
          activity.attendees.add(profile.id);
          return Future.succeededFuture(activity);
        }));
  }
public Future < PlannedActivity > createModelExample ( final int index , final Vertx vertx , final VertxTestContext testContext ) { return testContext . assertComplete ( StoreServices . storeProfile ( new WeNetUserProfile ( ) , vertx , testContext ) . compose ( profile -> { final var activity = this . createModelExample ( index ) ; activity . attendees = new ArrayList < > ( ) ; activity . attendees . add ( profile . id ) ; return Future . succeededFuture ( activity ) ; } ) ) ; }
Create an example model that has the specified index.
Create an example model that has the specified index .