model/src/test/java/eu/internetofus/common/model/ModelTest.java
/**
   * Check that can not obtain list from a bad model on array.
   */
Check that can not obtain list from a bad model on array.
Check that can not obtain list from a bad model on array .
@Test
  public void shoulBadModelOnArrayNotConvertedToList() {
    assertThat(Model.fromJsonArray(new JsonArray().add(new JsonObject().put("undefined", "value")), DummyModel.class))
        .isNull();
  }
@ Test public void shoulBadModelOnArrayNotConvertedToList ( ) { assertThat ( Model . fromJsonArray ( new JsonArray ( ) . add ( new JsonObject ( ) . put ( "undefined" , "value" ) ) , DummyModel . class ) ) . isNull ( ) ; }
Check that can not obtain list from a bad model on array.
Check that can not obtain list from a bad model on array .