components/src/test/java/eu/internetofus/common/components/models/TaskTest.java
/**
   * Check that merge when only is modified the {@link Task#goal}.
   *
   * @param vertx       event bus to use.
   * @param testContext context to test.
   *
   * @see Task#merge(Task, WeNetValidateContext)
   */
Check that merge when only is modified the  Task#goal.
@param vertx       event bus to use.
@param testContext context to test.


Check that merge when only is modified the Task#goal . @param vertx event bus to use . @param testContext context to test .
@Test
  public void shouldOnlyMergeGoalWithNullFields(final Vertx vertx, final VertxTestContext testContext) {
    this.createModelExample(1, vertx, testContext).onSuccess(targetToStore -> {
      StoreServices.storeTask(targetToStore, vertx, testContext).onSuccess(target -> {
        final var source = new Task();
        source.goal = new HumanDescription();
        assertCanMerge(target, source, new WeNetValidateContext("codePrefix", vertx), testContext, merged -> {
          assertThat(merged).isEqualTo(target).isNotEqualTo(source);
        });
      });
    });
  }
@ Test public void shouldOnlyMergeGoalWithNullFields ( final Vertx vertx , final VertxTestContext testContext ) { this . createModelExample ( 1 , vertx , testContext ) . onSuccess ( targetToStore -> { StoreServices . storeTask ( targetToStore , vertx , testContext ) . onSuccess ( target -> { final var source = new Task ( ) ; source . goal = new HumanDescription ( ) ; assertCanMerge ( target , source , new WeNetValidateContext ( "codePrefix" , vertx ) , testContext , merged -> { assertThat ( merged ) . isEqualTo ( target ) . isNotEqualTo ( source ) ; } ) ; } ) ; } ) ; }
Check that merge when only is modified the {@link Task#goal}.
Check that merge when only is modified the { @link Task#goal } .