components/src/test/java/eu/internetofus/common/components/models/DeprecatedSocialNetworkRelationshipTest.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 social network relationship.
   */
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 social network relationship.
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 social network relationship .
public Future<DeprecatedSocialNetworkRelationship> createModelExample(final int index, final Vertx vertx,
      final VertxTestContext testContext) {
    return StoreServices.storeProfile(new WeNetUserProfile(), vertx, testContext).compose(user -> {
      final var relation = this.createModelExample(index);
      relation.userId = user.id;
      return StoreServices.storeApp(new App(), vertx, testContext).map(app -> {
        relation.appId = app.appId;
        return relation;
      });
    });
  }
public Future < DeprecatedSocialNetworkRelationship > createModelExample ( final int index , final Vertx vertx , final VertxTestContext testContext ) { return StoreServices . storeProfile ( new WeNetUserProfile ( ) , vertx , testContext ) . compose ( user -> { final var relation = this . createModelExample ( index ) ; relation . userId = user . id ; return StoreServices . storeApp ( new App ( ) , vertx , testContext ) . map ( app -> { relation . appId = app . appId ; return relation ; } ) ; } ) ; }
Create an example model that has the specified index.
Create an example model that has the specified index .