model/src/test/java/eu/internetofus/common/model/ModelTest.java
/**
   * Check that can not obtain list from a bad array on buffer.
   *
   * @param badValue the value that is not a valid array.
   */
Check that can not obtain list from a bad array on buffer.
@param badValue the value that is not a valid array.
Check that can not obtain list from a bad array on buffer . @param badValue the value that is not a valid array .
@ParameterizedTest(name = "The value '{0}' is not a valid json array")
  @ValueSource(strings = { "{}", "[" })
  public void shoulBadValueOnBufferNotConvertedToList(final String badValue) {
    assertThat(Model.fromJsonArray(Buffer.buffer(badValue), DummyModel.class)).isNull();
  }
@ ParameterizedTest ( name = "The value '{0}' is not a valid json array" ) @ ValueSource ( strings = { "{}" , "[" } ) public void shoulBadValueOnBufferNotConvertedToList ( final String badValue ) { assertThat ( Model . fromJsonArray ( Buffer . buffer ( badValue ) , DummyModel . class ) ) . isNull ( ) ; }
Check that can not obtain list from a bad array on buffer.
Check that can not obtain list from a bad array on buffer .