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