model/src/test/java/eu/internetofus/common/model/ModelTest.java
/**
   * Check that can convert a string array.
   *
   * @see Model#toJsonArray(Iterable)
   */
Check that can convert a string array.
Check that can convert a string array .
@Test
  public void shouldToJsonArrayAStringList() {
    final var expected = new JsonArray();
    expected.add("One");
    expected.add("2");
    expected.add("3.0");
    assertThat(Model.toJsonArray(Arrays.asList("One", "2", "3.0"))).isEqualTo(expected);
  }
@ Test public void shouldToJsonArrayAStringList ( ) { final var expected = new JsonArray ( ) ; expected . add ( "One" ) ; expected . add ( "2" ) ; expected . add ( "3.0" ) ; assertThat ( Model . toJsonArray ( Arrays . asList ( "One" , "2" , "3.0" ) ) ) . isEqualTo ( expected ) ; }
Check that can convert a string array.
Check that can convert a string array .