model/src/test/java/eu/internetofus/common/model/ModelTestCase.java
/**
   * Check two models are different.
   */
Check two models are different.
Check two models are different .
@Test
  public void shouldNotBeEquals() {
    final var model1 = this.createModelExample(1);
    final var model2 = this.createModelExample(2);
    assertThat(model1).isNotEqualTo(model2);
    assertThat(model1.hashCode()).isNotEqualTo(model2.hashCode());
    assertThat(model1.toString()).isNotEqualTo(model2.toString());
    assertThat(model1.toJsonString()).isNotEqualTo(model2.toJsonString());
  }
@ Test public void shouldNotBeEquals ( ) { final var model1 = this . createModelExample ( 1 ) ; final var model2 = this . createModelExample ( 2 ) ; assertThat ( model1 ) . isNotEqualTo ( model2 ) ; assertThat ( model1 . hashCode ( ) ) . isNotEqualTo ( model2 . hashCode ( ) ) ; assertThat ( model1 . toString ( ) ) . isNotEqualTo ( model2 . toString ( ) ) ; assertThat ( model1 . toJsonString ( ) ) . isNotEqualTo ( model2 . toJsonString ( ) ) ; }
Check two models are different.
Check two models are different .