vertx/src/test/java/eu/internetofus/common/vertx/RepositoryIT.java
/**
   * Should by empty aggregate page because query is wrong.
   *
   * @param vertx       event bus to use.
   * @param testContext context for the test.
   */
Should by empty aggregate page because query is wrong.
@param vertx       event bus to use.
@param testContext context for the test.
Should by empty aggregate page because query is wrong . @param vertx event bus to use . @param testContext context for the test .
@Test
  public void shouldCountAggregationByZero(final Vertx vertx, final VertxTestContext testContext) {
    final var repository = new Repository(vertx, pool, "schemaVersion");
    testContext.assertComplete(repository.countAggregation(EMPTY_COLLECTION, null, null))
        .onSuccess(total -> testContext.verify(() -> {
          assertThat(total).isEqualTo(0l);
          testContext.completeNow();
        }));
  }
@ Test public void shouldCountAggregationByZero ( final Vertx vertx , final VertxTestContext testContext ) { final var repository = new Repository ( vertx , pool , "schemaVersion" ) ; testContext . assertComplete ( repository . countAggregation ( EMPTY_COLLECTION , null , null ) ) . onSuccess ( total -> testContext . verify ( ( ) -> { assertThat ( total ) . isEqualTo ( 0l ) ; testContext . completeNow ( ) ; } ) ) ; }
Should by empty aggregate page because query is wrong.
Should by empty aggregate page because query is wrong .