components/src/test/java/eu/internetofus/common/components/models/MeaningTest.java
/**
   * Check that the {@link #createModelExample(int)} is valid.
   *
   * @param index       of the example to test.
   * @param vertx       event bus to use.
   * @param testContext test context to use.
   */
Check that the  #createModelExample(int) is valid.
@param index       of the example to test.
@param vertx       event bus to use.
@param testContext test context to use.
Check that the #createModelExample ( int ) is valid . @param index of the example to test . @param vertx event bus to use . @param testContext test context to use .
@ParameterizedTest(name = "Should be valid the example {0}")
  @ValueSource(ints = { 0, 1, 2, 3, 4, 5 })
  public void shouldExampleBeValid(final int index, final Vertx vertx, final VertxTestContext testContext) {
    final var model = new Meaning();
    model.name = "    name_" + index + "    ";
    model.category = "    category_" + index + "    ";
    model.level = (double) index;
    assertIsValid(model, new WeNetValidateContext("codePrefix", vertx), testContext, () -> {
      final var expected = this.createModelExample(index);
      assertThat(model).isEqualTo(expected);
    });
  }
@ ParameterizedTest ( name = "Should be valid the example {0}" ) @ ValueSource ( ints = { 0 , 1 , 2 , 3 , 4 , 5 } ) public void shouldExampleBeValid ( final int index , final Vertx vertx , final VertxTestContext testContext ) { final var model = new Meaning ( ) ; model . name = "    name_" + index + "    " ; model . category = "    category_" + index + "    " ; model . level = ( double ) index ; assertIsValid ( model , new WeNetValidateContext ( "codePrefix" , vertx ) , testContext , ( ) -> { final var expected = this . createModelExample ( index ) ; assertThat ( model ) . isEqualTo ( expected ) ; } ) ; }
Check that the {@link #createModelExample(int)} is valid.
Check that the { @link #createModelExample ( int ) } is valid .