vertx/src/test/java/eu/internetofus/common/vertx/RepositoryIT.java
/**
   * Should not found page because query is wrong.
   *
   * @param vertx       event bus to use.
   * @param testContext context for the test.
   */
Should not found page because query is wrong.
@param vertx       event bus to use.
@param testContext context for the test.
Should not found page because query is wrong . @param vertx event bus to use . @param testContext context for the test .
@Test
  public void shouldNotSearchPageObjectBecauseQueryIsNotValid(final Vertx vertx, final VertxTestContext testContext) {
    final var repository = new Repository(vertx, pool, "schemaVersion");
    final var options = new FindOptions();
    options.setLimit(1000);
    testContext.assertFailure(repository.searchPageObject(EMPTY_COLLECTION,
        new JsonObject().put("$undefinedAction", -1), options, "models", null))
        .onFailure(error -> testContext.completeNow());
  }
@ Test public void shouldNotSearchPageObjectBecauseQueryIsNotValid ( final Vertx vertx , final VertxTestContext testContext ) { final var repository = new Repository ( vertx , pool , "schemaVersion" ) ; final var options = new FindOptions ( ) ; options . setLimit ( 1000 ) ; testContext . assertFailure ( repository . searchPageObject ( EMPTY_COLLECTION , new JsonObject ( ) . put ( "$undefinedAction" , - 1 ) , options , "models" , null ) ) . onFailure ( error -> testContext . completeNow ( ) ) ; }
Should not found page because query is wrong.
Should not found page because query is wrong .