vertx/src/test/java/eu/internetofus/common/vertx/RepositoryIT.java
/**
   * Should not fond one document because any match query.
   *
   * @param vertx       event bus to use.
   * @param testContext context for the test.
   */
Should not fond one document because any match query.
@param vertx       event bus to use.
@param testContext context for the test.
Should not fond one document because any match query . @param vertx event bus to use . @param testContext context for the test .
@Test
  public void shouldNotFindOneDocumentBeauceAnyMatchQuery(final Vertx vertx, final VertxTestContext testContext) {
    final var repository = new Repository(vertx, pool, "schemaVersion");
    testContext.assertFailure(repository.findOneDocument(EMPTY_COLLECTION,
        new JsonObject().put("index", new JsonObject().put("$mod", new JsonArray().add(2).add(0))),
        new JsonObject().put("index", false), null)).onFailure(error -> testContext.completeNow());
  }
@ Test public void shouldNotFindOneDocumentBeauceAnyMatchQuery ( final Vertx vertx , final VertxTestContext testContext ) { final var repository = new Repository ( vertx , pool , "schemaVersion" ) ; testContext . assertFailure ( repository . findOneDocument ( EMPTY_COLLECTION , new JsonObject ( ) . put ( "index" , new JsonObject ( ) . put ( "$mod" , new JsonArray ( ) . add ( 2 ) . add ( 0 ) ) ) , new JsonObject ( ) . put ( "index" , false ) , null ) ) . onFailure ( error -> testContext . completeNow ( ) ) ; }
Should not fond one document because any match query.
Should not fond one document because any match query .