model/src/test/java/eu/internetofus/common/model/ModelTest.java
/**
   * Check that the future fails if the object is {@code null}.
   *
   * @param testContext context for the test.
   *
   * @see Model#fromFutureJsonObject(io.vertx.core.Future, Class)
   */
Check that the future fails if the object is  null.
@param testContext context for the test.


Check that the future fails if the object is null . @param testContext context for the test .
@Test
  public void shouldFutureFailFromNullObject(final VertxTestContext testContext) {
    testContext.assertFailure(Model.fromFutureJsonObject(Future.succeededFuture(), DummyModel.class))
        .onFailure(result -> testContext.completeNow());
  }
@ Test public void shouldFutureFailFromNullObject ( final VertxTestContext testContext ) { testContext . assertFailure ( Model . fromFutureJsonObject ( Future . succeededFuture ( ) , DummyModel . class ) ) . onFailure ( result -> testContext . completeNow ( ) ) ; }
Check that the future fails if the object is {@code null}.
Check that the future fails if the object is { @code null } .