model/src/test/java/eu/internetofus/common/model/ModelTest.java
/**
   * Check that the future fail because the array does not contains a valid model.
   *
   * @param testContext context for the test.
   *
   * @see Model#fromFutureJsonArray(io.vertx.core.Future, Class)
   */
Check that the future fail because the array does not contains a valid model.
@param testContext context for the test.


Check that the future fail because the array does not contains a valid model . @param testContext context for the test .
@Test
  public void shouldFutureFailBecauseNoValidModel(final VertxTestContext testContext) {
    testContext
        .assertFailure(
            Model.fromFutureJsonArray(Future.succeededFuture(new JsonArray().add(new JsonArray())), DummyModel.class))
        .onFailure(result -> testContext.completeNow());
  }
@ Test public void shouldFutureFailBecauseNoValidModel ( final VertxTestContext testContext ) { testContext . assertFailure ( Model . fromFutureJsonArray ( Future . succeededFuture ( new JsonArray ( ) . add ( new JsonArray ( ) ) ) , DummyModel . class ) ) . onFailure ( result -> testContext . completeNow ( ) ) ; }
Check that the future fail because the array does not contains a valid model.
Check that the future fail because the array does not contains a valid model .