components/src/test/java/eu/internetofus/common/components/profile_diversity_manager/WeNetProfileDiversityManagerTestCase.java
/**
   * An empty data will be a {@code 0} diversity.
   *
   * @param vertx       that contains the event bus to use.
   * @param testContext context over the tests.
   */
An empty data will be a  0 diversity.
@param vertx       that contains the event bus to use.
@param testContext context over the tests.
An empty data will be a 0 diversity . @param vertx that contains the event bus to use . @param testContext context over the tests .
@Test
  public void shouldDiversityBeZeroIfEmptyData(final Vertx vertx, final VertxTestContext testContext) {
    this.createComponentProxy(vertx).calculateDiversityOf(new AgentsData())
        .onComplete(testContext.succeeding(diversity -> testContext.verify(() -> {
          assertThat(diversity.value).isEqualTo(0.0d);
          testContext.completeNow();
        })));
  }
@ Test public void shouldDiversityBeZeroIfEmptyData ( final Vertx vertx , final VertxTestContext testContext ) { this . createComponentProxy ( vertx ) . calculateDiversityOf ( new AgentsData ( ) ) . onComplete ( testContext . succeeding ( diversity -> testContext . verify ( ( ) -> { assertThat ( diversity . value ) . isEqualTo ( 0.0d ) ; testContext . completeNow ( ) ; } ) ) ) ; }
An empty data will be a {@code 0} diversity.
An empty data will be a { @code 0 } diversity .