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


Check that the future is an empty list if the array is null . @param testContext context for the test .
@Test
  public void shouldFutureFromNullArrayBeEmptyList(final VertxTestContext testContext) {
    testContext.assertComplete(Model.fromFutureJsonArray(Future.succeededFuture(), DummyModel.class))
        .onSuccess(result -> {
          assertThat(result).isEmpty();
          testContext.completeNow();
        });
  }
@ Test public void shouldFutureFromNullArrayBeEmptyList ( final VertxTestContext testContext ) { testContext . assertComplete ( Model . fromFutureJsonArray ( Future . succeededFuture ( ) , DummyModel . class ) ) . onSuccess ( result -> { assertThat ( result ) . isEmpty ( ) ; testContext . completeNow ( ) ; } ) ; }
Check that the future is an empty list if the array is {@code null}.
Check that the future is an empty list if the array is { @code null } .