components/src/test/java/eu/internetofus/common/components/models/MaterialTest.java
/**
   * Check that the material is not valid if has a bad classification.
   *
   * @param classification that is invalid.
   * @param vertx          event bus to use.
   * @param testContext    test context to use.
   */
Check that the material is not valid if has a bad classification.
@param classification that is invalid.
@param vertx          event bus to use.
@param testContext    test context to use.
Check that the material is not valid if has a bad classification . @param classification that is invalid . @param vertx event bus to use . @param testContext test context to use .
@ParameterizedTest(name = "Should not be valid with the classification {0}")
  @NullSource
  public void shouldNotBeValidWithABadClassification(final String classification, final Vertx vertx,
      final VertxTestContext testContext) {
    final var model = this.createModelExample(1);
    model.classification = classification;
    assertIsNotValid(model, "classification", new WeNetValidateContext("codePrefix", vertx), testContext);
  }
@ ParameterizedTest ( name = "Should not be valid with the classification {0}" ) @ NullSource public void shouldNotBeValidWithABadClassification ( final String classification , final Vertx vertx , final VertxTestContext testContext ) { final var model = this . createModelExample ( 1 ) ; model . classification = classification ; assertIsNotValid ( model , "classification" , new WeNetValidateContext ( "codePrefix" , vertx ) , testContext ) ; }
Check that the material is not valid if has a bad classification.
Check that the material is not valid if has a bad classification .