components/src/test/java/eu/internetofus/common/components/StoreServices.java
/**
   * Store a community example.
   *
   * @param index       of the example to store.
   * @param vertx       event bus to use.
   * @param testContext test context to use.
   *
   * @return the stored profile.
   */
Store a community example.
@param index       of the example to store.
@param vertx       event bus to use.
@param testContext test context to use.

@return the stored profile.
Store a community example . @param index of the example to store . @param vertx event bus to use . @param testContext test context to use . @return the stored profile .
static Future<CommunityProfile> storeCommunityExample(final int index, final Vertx vertx,
      final VertxTestContext testContext) {
    return testContext
        .assertComplete(new CommunityProfileTest().createModelExample(index, vertx, testContext).compose(example -> {
          example.id = null;
          return storeCommunity(example, vertx, testContext);
        }));
  }
static Future < CommunityProfile > storeCommunityExample ( final int index , final Vertx vertx , final VertxTestContext testContext ) { return testContext . assertComplete ( new CommunityProfileTest ( ) . createModelExample ( index , vertx , testContext ) . compose ( example -> { example . id = null ; return storeCommunity ( example , vertx , testContext ) ; } ) ) ; }
Store a community example.
Store a community example .