model/src/test/java/eu/internetofus/common/model/ModelTestCase.java
/**
   * Check the model can be encoded decoded from {@link JsonObject}.
   */
Check the model can be encoded decoded from  JsonObject.
Check the model can be encoded decoded from JsonObject .
@Test
  public void shouldJsonObjectManipulable() {
    final var model = this.createModelExample(1);
    final var value = model.toJsonObject();
    assertThat(value).isNotEmpty();
    assertThat(Model.fromJsonObject(value, model.getClass())).isEqualTo(model);
  }
@ Test public void shouldJsonObjectManipulable ( ) { final var model = this . createModelExample ( 1 ) ; final var value = model . toJsonObject ( ) ; assertThat ( value ) . isNotEmpty ( ) ; assertThat ( Model . fromJsonObject ( value , model . getClass ( ) ) ) . isEqualTo ( model ) ; }
Check the model can be encoded decoded from {@link JsonObject}.
Check the model can be encoded decoded from { @link JsonObject } .