components/src/test/java/eu/internetofus/common/components/profile_manager/WeNetProfileManagerTestCase.java
/**
   * Should calculate similarity.
   *
   * @param vertx       that contains the event bus to use.
   * @param testContext context over the tests.
   */
Should calculate similarity.
@param vertx       that contains the event bus to use.
@param testContext context over the tests.
Should calculate similarity . @param vertx that contains the event bus to use . @param testContext context over the tests .
@Test
  public void shouldCalculateSimilarity(final Vertx vertx, final VertxTestContext testContext) {
    new SimilarityDataTest().createModelExample(0, vertx, testContext).compose(data -> WeNetProfileManager
        .createProxy(vertx).operationSimilarity(data).onComplete(testContext.succeeding(result -> {
          testContext.verify(() -> {
            assertThat(result.attributes).isNotEmpty();
          });
          testContext.completeNow();
        })));
  }
@ Test public void shouldCalculateSimilarity ( final Vertx vertx , final VertxTestContext testContext ) { new SimilarityDataTest ( ) . createModelExample ( 0 , vertx , testContext ) . compose ( data -> WeNetProfileManager . createProxy ( vertx ) . operationSimilarity ( data ) . onComplete ( testContext . succeeding ( result -> { testContext . verify ( ( ) -> { assertThat ( result . attributes ) . isNotEmpty ( ) ; } ) ; testContext . completeNow ( ) ; } ) ) ) ; }
Should calculate similarity.
Should calculate similarity .