model/src/test/java/eu/internetofus/common/model/ValidateContextTest.java
/**
   * Check that a url value is valid but it is {@code null}.
   *
   * @param value to be valid.
   *
   * @see ValidateContext#validateNullableUrlField(String, String, Promise)
   */
Check that a url value is valid but it is  null.
@param value to be valid.


Check that a url value is valid but it is null . @param value to be valid .
@ParameterizedTest(name = "Should {0} be valid and return null")
  @NullSource
  @ValueSource(strings = { "", "        " })
  public void shouldValidateNullableUrlFieldReturnNull(final String value) {
    final Promise<Void> promise = Promise.promise();
    assertThat(this.context.validateNullableUrlField("urlField", value, promise)).isNull();
    assertThat(promise.tryComplete()).isTrue();
  }
@ ParameterizedTest ( name = "Should {0} be valid and return null" ) @ NullSource @ ValueSource ( strings = { "" , "        " } ) public void shouldValidateNullableUrlFieldReturnNull ( final String value ) { final Promise < Void > promise = Promise . promise ( ) ; assertThat ( this . context . validateNullableUrlField ( "urlField" , value , promise ) ) . isNull ( ) ; assertThat ( promise . tryComplete ( ) ) . isTrue ( ) ; }
Check that a url value is valid but it is {@code null}.
Check that a url value is valid but it is { @code null } .