components/src/test/java/eu/internetofus/common/components/models/SocialPracticeTest.java
/**
   * Check that update removing all competences.
   *
   * @param vertx       event bus to use.
   * @param testContext test context to use.
   *
   * @see SocialPractice#update(SocialPractice, WeNetValidateContext)
   */
Check that update removing all competences.
@param vertx       event bus to use.
@param testContext test context to use.


Check that update removing all competences . @param vertx event bus to use . @param testContext test context to use .
@Test
  public void shouldUpdateRemoveCompetences(final Vertx vertx, final VertxTestContext testContext) {
    final var target = this.createModelExample(1);
    target.id = "19";
    final var source = new SocialPractice();
    source.competences = new ArrayList<>();
    assertCanUpdate(target, source, new WeNetValidateContext("codePrefix", vertx), testContext, updated -> {
      assertThat(updated).isNotEqualTo(target).isNotEqualTo(source);
      source.id = target.id;
      assertThat(updated).isEqualTo(source);
    });
  }
@ Test public void shouldUpdateRemoveCompetences ( final Vertx vertx , final VertxTestContext testContext ) { final var target = this . createModelExample ( 1 ) ; target . id = "19" ; final var source = new SocialPractice ( ) ; source . competences = new ArrayList < > ( ) ; assertCanUpdate ( target , source , new WeNetValidateContext ( "codePrefix" , vertx ) , testContext , updated -> { assertThat ( updated ) . isNotEqualTo ( target ) . isNotEqualTo ( source ) ; source . id = target . id ; assertThat ( updated ) . isEqualTo ( source ) ; } ) ; }
Check that update removing all competences.
Check that update removing all competences .