vertx/src/test/java/eu/internetofus/common/vertx/RepositoryIT.java
/**
   * Should not store because map throws exception.
   *
   * @param vertx       event bus to use.
   * @param testContext context for the test.
   */
Should not store because map throws exception.
@param vertx       event bus to use.
@param testContext context for the test.
Should not store because map throws exception . @param vertx event bus to use . @param testContext context for the test .
@Test
  public void shouldNotStoreBecauseMapThrowsException(final Vertx vertx, final VertxTestContext testContext) {
    final var document = new JsonObject().put("key1", "value").put("key2", 2).put("key3", false).put("key4",
        new JsonArray());
    final var repository = new Repository(vertx, pool, "schemaVersion");
    testContext
        .assertFailure(repository.storeOneDocument(TEST_COLLECTION, document,
            model -> model.put("undefined", model.getString("undefined").toString())))
        .onFailure(error -> testContext.completeNow());
  }
@ Test public void shouldNotStoreBecauseMapThrowsException ( final Vertx vertx , final VertxTestContext testContext ) { final var document = new JsonObject ( ) . put ( "key1" , "value" ) . put ( "key2" , 2 ) . put ( "key3" , false ) . put ( "key4" , new JsonArray ( ) ) ; final var repository = new Repository ( vertx , pool , "schemaVersion" ) ; testContext . assertFailure ( repository . storeOneDocument ( TEST_COLLECTION , document , model -> model . put ( "undefined" , model . getString ( "undefined" ) . toString ( ) ) ) ) . onFailure ( error -> testContext . completeNow ( ) ) ; }
Should not store because map throws exception.
Should not store because map throws exception .