components/src/test/java/eu/internetofus/common/components/models/TaskTest.java
/**
   * Check that cannot merge if the new task type ot match the attirbutes of the
   * task.
   *
   * @param vertx       event bus to use.
   * @param testContext context to test.
   *
   * @see Task#merge(Task, WeNetValidateContext)
   */
Check that cannot merge if the new task type ot match the attirbutes of the
task.

@param vertx       event bus to use.
@param testContext context to test.


Check that cannot merge if the new task type ot match the attirbutes of the task . @param vertx event bus to use . @param testContext context to test .
@Test
  public void shouldNotMergeIfNewTaskTypeIdNotMatchAttributes(final Vertx vertx, final VertxTestContext testContext) {
    this.createModelExample(1, vertx, testContext).onSuccess(targetToStore -> {
      StoreServices.storeTask(targetToStore, vertx, testContext).onSuccess(target -> {
        StoreServices.storeTaskType(new TaskType(), vertx, testContext).onSuccess(taskType -> {
          final var source = new Task();
          source.taskTypeId = taskType.id;
          assertCannotMerge(target, source, "attributes", new WeNetValidateContext("codePrefix", vertx), testContext);
        });
      });
    });
  }
@ Test public void shouldNotMergeIfNewTaskTypeIdNotMatchAttributes ( final Vertx vertx , final VertxTestContext testContext ) { this . createModelExample ( 1 , vertx , testContext ) . onSuccess ( targetToStore -> { StoreServices . storeTask ( targetToStore , vertx , testContext ) . onSuccess ( target -> { StoreServices . storeTaskType ( new TaskType ( ) , vertx , testContext ) . onSuccess ( taskType -> { final var source = new Task ( ) ; source . taskTypeId = taskType . id ; assertCannotMerge ( target , source , "attributes" , new WeNetValidateContext ( "codePrefix" , vertx ) , testContext ) ; } ) ; } ) ; } ) ; }
Check that cannot merge if the new task type ot match the attirbutes of the
 task.
Check that cannot merge if the new task type ot match the attirbutes of the task .