vertx/src/test/java/eu/internetofus/common/vertx/RepositoryTest.java
/**
   * Verify that the sort object is null when an empty or {@code null} value is
   * converted.
   *
   * @see Repository#queryParamToSort(Iterable, String,Function)
   */
Verify that the sort object is null when an empty or  null value is
converted.


Verify that the sort object is null when an empty or null value is converted .
@Test
  public void shouldSortThrowExceptionWhenValueIsNull() {
    final var error = catchThrowableOfType(
        () -> Repository.queryParamToSort(Arrays.asList("key1", "-key2", null), "codePrefix", null),
        ValidationErrorException.class);
    assertThat(error).isNotNull();
    assertThat(error.getCode()).isEqualTo("codePrefix[2]");
  }
@ Test public void shouldSortThrowExceptionWhenValueIsNull ( ) { final var error = catchThrowableOfType ( ( ) -> Repository . queryParamToSort ( Arrays . asList ( "key1" , "-key2" , null ) , "codePrefix" , null ) , ValidationErrorException . class ) ; assertThat ( error ) . isNotNull ( ) ; assertThat ( error . getCode ( ) ) . isEqualTo ( "codePrefix[2]" ) ; }
Verify that the sort object is null when an empty or {@code null} value is
 converted.
Verify that the sort object is null when an empty or { @code null } value is converted .