model/src/test/java/eu/internetofus/common/model/ValidateContextTest.java
/**
   * Check that a string list value is valid but it return empty list.
   *
   * @see ValidateContext#validateNullableStringListField(String, java.util.List,
   *      Promise)
   */
Check that a string list value is valid but it return empty list.
Check that a string list value is valid but it return empty list .
@Test
  public void shouldValidateNullableStringListFieldReturnEmptyList() {
    final Promise<Void> promise = Promise.promise();
    final var value = Arrays.asList(null, "", "        ");
    assertThat(this.context.validateNullableStringListField("list", value, promise)).isEmpty();
    assertThat(promise.tryComplete()).isTrue();
  }
@ Test public void shouldValidateNullableStringListFieldReturnEmptyList ( ) { final Promise < Void > promise = Promise . promise ( ) ; final var value = Arrays . asList ( null , "" , "        " ) ; assertThat ( this . context . validateNullableStringListField ( "list" , value , promise ) ) . isEmpty ( ) ; assertThat ( promise . tryComplete ( ) ) . isTrue ( ) ; }
Check that a string list value is valid but it return empty list.
Check that a string list value is valid but it return empty list .