model/src/test/java/eu/internetofus/common/model/MergesTest.java
/**
   * Check can merge simple values.
   *
   * @see Merges#mergeValues(Object,Object)
   */
Check can merge simple values.
Check can merge simple values .
@Test
  public void shoulMergeValues() {
    assertThat(Merges.mergeValues((Object) null, null)).isNull();
    final var source = UUID.randomUUID().toString();
    assertThat(Merges.mergeValues(null, source)).isSameAs(source);
    assertThat(Merges.mergeValues(1l, source)).isSameAs(source);
    final var target = UUID.randomUUID().toString();
    assertThat(Merges.mergeValues(target, null)).isSameAs(target);
    assertThat(Merges.mergeValues(target, source)).isSameAs(source);
  }
@ Test public void shoulMergeValues ( ) { assertThat ( Merges . mergeValues ( ( Object ) null , null ) ) . isNull ( ) ; final var source = UUID . randomUUID ( ) . toString ( ) ; assertThat ( Merges . mergeValues ( null , source ) ) . isSameAs ( source ) ; assertThat ( Merges . mergeValues ( 1l , source ) ) . isSameAs ( source ) ; final var target = UUID . randomUUID ( ) . toString ( ) ; assertThat ( Merges . mergeValues ( target , null ) ) . isSameAs ( target ) ; assertThat ( Merges . mergeValues ( target , source ) ) . isSameAs ( source ) ; }
Check can merge simple values.
Check can merge simple values .