components/src/test/java/eu/internetofus/common/components/models/TaskTypeTest.java
/**
   * Check that the model is updated with a name with spaces.
   *
   * @param vertx       event bus to use.
   * @param testContext test context to use.
   *
   * @see TaskType#update(TaskType, WeNetValidateContext)
   */
Check that the model is updated with a name with spaces.
@param vertx       event bus to use.
@param testContext test context to use.


Check that the model is updated with a name with spaces . @param vertx event bus to use . @param testContext test context to use .
@Test
  public void shouldUpdateANameWithSpaces(final Vertx vertx, final VertxTestContext testContext) {
    final var target = this.createModelExample(1);
    final var source = Model.fromJsonObject(target.toJsonObject(), TaskType.class);
    source.name = "   1234567890   ";
    assertCanUpdate(target, source, new WeNetValidateContext("codePrefix", vertx), testContext,
        updated -> assertThat(updated.name).isEqualTo("1234567890"));
  }
@ Test public void shouldUpdateANameWithSpaces ( final Vertx vertx , final VertxTestContext testContext ) { final var target = this . createModelExample ( 1 ) ; final var source = Model . fromJsonObject ( target . toJsonObject ( ) , TaskType . class ) ; source . name = "   1234567890   " ; assertCanUpdate ( target , source , new WeNetValidateContext ( "codePrefix" , vertx ) , testContext , updated -> assertThat ( updated . name ) . isEqualTo ( "1234567890" ) ) ; }
Check that the model is updated with a name with spaces.
Check that the model is updated with a name with spaces .