vertx/src/test/java/eu/internetofus/common/vertx/ModelResourcesTest.java
/**
   * Check not found element if the list is empty.
   */
Check not found element if the list is empty.
Check not found element if the list is empty .
@Test
  public void shoulNotFoundElementWithIndexForEmptyList() {
    final var models = new ArrayList<>();
    assertThat(ModelResources.searchElementByIndex().apply(models, 1)).isEqualTo(-1);
  }
@ Test public void shoulNotFoundElementWithIndexForEmptyList ( ) { final var models = new ArrayList < > ( ) ; assertThat ( ModelResources . searchElementByIndex ( ) . apply ( models , 1 ) ) . isEqualTo ( - 1 ) ; }
Check not found element if the list is empty.
Check not found element if the list is empty .