components/src/test/java/eu/internetofus/common/components/models/TaskTest.java
/**
   * Check that can not update when the {@link Task#taskTypeId} has a bas value.
   *
   * @param vertx       event bus to use.
   * @param testContext context to test.
   *
   * @see Task#update(Task, WeNetValidateContext)
   */
Check that can not update when the  Task#taskTypeId has a bas value.
@param vertx       event bus to use.
@param testContext context to test.


Check that can not update when the Task#taskTypeId has a bas value . @param vertx event bus to use . @param testContext context to test .
@Test
  public void shouldNotUpdateWithBadTaskTypeId(final Vertx vertx, final VertxTestContext testContext) {
    this.createModelExample(1, vertx, testContext).onSuccess(targetToStore -> {
      StoreServices.storeTask(targetToStore, vertx, testContext).onSuccess(target -> {
        final var source = Model.fromJsonObject(target.toJsonObject(), Task.class);
        source.taskTypeId = "undefined-task-type-identifier";
        assertCannotUpdate(target, source, "taskTypeId", new WeNetValidateContext("codePrefix", vertx), testContext);
      });
    });
  }
@ Test public void shouldNotUpdateWithBadTaskTypeId ( final Vertx vertx , final VertxTestContext testContext ) { this . createModelExample ( 1 , vertx , testContext ) . onSuccess ( targetToStore -> { StoreServices . storeTask ( targetToStore , vertx , testContext ) . onSuccess ( target -> { final var source = Model . fromJsonObject ( target . toJsonObject ( ) , Task . class ) ; source . taskTypeId = "undefined-task-type-identifier" ; assertCannotUpdate ( target , source , "taskTypeId" , new WeNetValidateContext ( "codePrefix" , vertx ) , testContext ) ; } ) ; } ) ; }
Check that can not update when the {@link Task#taskTypeId} has a bas value.
Check that can not update when the { @link Task#taskTypeId } has a bas value .