components/src/test/java/eu/internetofus/common/components/models/MaterialTest.java
/**
   * Check that cannot update a material with a bad name.
   *
   * @param vertx       event bus to use.
   * @param testContext test context to use.
   */
Check that cannot update a material with a bad name.
@param vertx       event bus to use.
@param testContext test context to use.
Check that cannot update a material with a bad name . @param vertx event bus to use . @param testContext test context to use .
@Test
  public void shouldCannotUpdateWithABadName(final Vertx vertx, final VertxTestContext testContext) {
    final var source = new Material();
    source.name = null;
    final var target = this.createModelExample(1);
    assertCannotUpdate(target, source, "name", new WeNetValidateContext("codePrefix", vertx), testContext);
  }
@ Test public void shouldCannotUpdateWithABadName ( final Vertx vertx , final VertxTestContext testContext ) { final var source = new Material ( ) ; source . name = null ; final var target = this . createModelExample ( 1 ) ; assertCannotUpdate ( target , source , "name" , new WeNetValidateContext ( "codePrefix" , vertx ) , testContext ) ; }
Check that cannot update a material with a bad name.
Check that cannot update a material with a bad name .