vertx/src/test/java/eu/internetofus/common/vertx/RepositoryIT.java
/**
   * Should not update document from an empty collection.
   *
   * @param vertx       event bus to use.
   * @param testContext context for the test.
   */
Should not update document from an empty collection.
@param vertx       event bus to use.
@param testContext context for the test.
Should not update document from an empty collection . @param vertx event bus to use . @param testContext context for the test .
@Test
  public void shouldNotUpdateDocumentFormEmptyCollection(final Vertx vertx, final VertxTestContext testContext) {
    final var repository = new Repository(vertx, pool, "schemaVersion");
    testContext
        .assertFailure(
            repository.updateOneDocument(EMPTY_COLLECTION, new JsonObject(), new JsonObject().put("index", 100)))
        .onFailure(error -> testContext.completeNow());
  }
@ Test public void shouldNotUpdateDocumentFormEmptyCollection ( final Vertx vertx , final VertxTestContext testContext ) { final var repository = new Repository ( vertx , pool , "schemaVersion" ) ; testContext . assertFailure ( repository . updateOneDocument ( EMPTY_COLLECTION , new JsonObject ( ) , new JsonObject ( ) . put ( "index" , 100 ) ) ) . onFailure ( error -> testContext . completeNow ( ) ) ; }
Should not update document from an empty collection.
Should not update document from an empty collection .