components/src/test/java/eu/internetofus/common/components/models/ScoredLabelTest.java
/**
   * Check that only merge the {@link ScoredLabel#score}.
   *
   * @param vertx       event bus to use.
   * @param testContext test context to use.
   *
   * @see RelevantLocation#merge(RelevantLocation, WeNetValidateContext)
   */
Check that only merge the  ScoredLabel#score.
@param vertx       event bus to use.
@param testContext test context to use.


Check that only merge the ScoredLabel#score . @param vertx event bus to use . @param testContext test context to use .
@Test
  public void shouldMergeOnlyScore(final Vertx vertx, final VertxTestContext testContext) {
    final var source = new ScoredLabel();
    source.score = 10.0d;
    final var target = this.createModelExample(2);
    assertCanMerge(target, source, new WeNetValidateContext("codePrefix", vertx), testContext, merged -> {
      assertThat(merged).isNotEqualTo(source).isNotEqualTo(target).isNotSameAs(target).isNotSameAs(source);
      target.score = source.score;
      assertThat(merged).isEqualTo(target);
    });
  }
@ Test public void shouldMergeOnlyScore ( final Vertx vertx , final VertxTestContext testContext ) { final var source = new ScoredLabel ( ) ; source . score = 10.0d ; final var target = this . createModelExample ( 2 ) ; assertCanMerge ( target , source , new WeNetValidateContext ( "codePrefix" , vertx ) , testContext , merged -> { assertThat ( merged ) . isNotEqualTo ( source ) . isNotEqualTo ( target ) . isNotSameAs ( target ) . isNotSameAs ( source ) ; target . score = source . score ; assertThat ( merged ) . isEqualTo ( target ) ; } ) ; }
Check that only merge the {@link ScoredLabel#score}.
Check that only merge the { @link ScoredLabel#score } .