vertx/src/test/java/eu/internetofus/common/vertx/ModelResourcesTest.java
/**
   * Check found element by index.
   */
Check found element by index.
Check found element by index .
@Test
  public void shouldFoundElementWithIndex() {
    final var models = new ArrayList<>();
    for (var i = 0; i < 10; i++) {
      models.add(new DummyComplexModelTest().createModelExample(i));
      assertThat(ModelResources.searchElementByIndex().apply(models, i)).isEqualTo(i);
    }
  }
@ Test public void shouldFoundElementWithIndex ( ) { final var models = new ArrayList < > ( ) ; for ( var i = 0 ; i < 10 ; i ++ ) { models . add ( new DummyComplexModelTest ( ) . createModelExample ( i ) ) ; assertThat ( ModelResources . searchElementByIndex ( ) . apply ( models , i ) ) . isEqualTo ( i ) ; } }
Check found element by index.
Check found element by index .