components/src/test/java/eu/internetofus/common/components/models/TaskTypeTest.java
/**
   * Check that update two empty models.
   *
   * @param vertx       event bus to use.
   * @param testContext test context to use.
   *
   * @see TaskType#update(TaskType, WeNetValidateContext)
   */
Check that update two empty models.
@param vertx       event bus to use.
@param testContext test context to use.


Check that update two empty models . @param vertx event bus to use . @param testContext test context to use .
@Test
  public void shouldUpdateEmptyModels(final Vertx vertx, final VertxTestContext testContext) {
    final var target = new TaskType();
    target.id = "1";
    final var source = new TaskType();
    source.id = "2";
    assertCanUpdate(target, source, new WeNetValidateContext("codePrefix", vertx), testContext, updated -> {
      assertThat(updated).isEqualTo(target).isNotEqualTo(source);
    });
  }
@ Test public void shouldUpdateEmptyModels ( final Vertx vertx , final VertxTestContext testContext ) { final var target = new TaskType ( ) ; target . id = "1" ; final var source = new TaskType ( ) ; source . id = "2" ; assertCanUpdate ( target , source , new WeNetValidateContext ( "codePrefix" , vertx ) , testContext , updated -> { assertThat ( updated ) . isEqualTo ( target ) . isNotEqualTo ( source ) ; } ) ; }
Check that update two empty models.
Check that update two empty models .