components/src/test/java/eu/internetofus/common/components/profile_manager/SimilarityDataTest.java
/**
   * Create a valid similarity data.
   *
   * @param index       of the example to create.
   * @param vertx       event bus to use.
   * @param testContext context to test.
   *
   * @return the valid model.
   */
Create a valid similarity data.
@param index       of the example to create.
@param vertx       event bus to use.
@param testContext context to test.

@return the valid model.
Create a valid similarity data . @param index of the example to create . @param vertx event bus to use . @param testContext context to test . @return the valid model .
public Future<SimilarityData> createModelExample(final int index, final Vertx vertx,
      final VertxTestContext testContext) {
    return StoreServices.storeProfileExample(index, vertx, testContext).map(profile -> {
      final var model = new SimilarityData();
      model.userId = profile.id;
      model.source = "Witch is the best nationality flag?";
      return model;
    });
  }
public Future < SimilarityData > createModelExample ( final int index , final Vertx vertx , final VertxTestContext testContext ) { return StoreServices . storeProfileExample ( index , vertx , testContext ) . map ( profile -> { final var model = new SimilarityData ( ) ; model . userId = profile . id ; model . source = "Witch is the best nationality flag?" ; return model ; } ) ; }
Create a valid similarity data.
Create a valid similarity data .