components/src/test/java/eu/internetofus/common/components/WeNetValidateContextTest.java
/**
   * Check that set/get model.
   */
Check that set/get model.
Check that set / get model .
@Test
  public void shouldSetGetModel() {
    final var cache = new WeNetValidateContext("codePrefix", null);
    cache.setModel("id", "value");
    assertThat(cache.getModel("id", String.class)).isEqualTo("value");
    assertThat(cache.existModel("id", String.class)).isTrue();
  }
@ Test public void shouldSetGetModel ( ) { final var cache = new WeNetValidateContext ( "codePrefix" , null ) ; cache . setModel ( "id" , "value" ) ; assertThat ( cache . getModel ( "id" , String . class ) ) . isEqualTo ( "value" ) ; assertThat ( cache . existModel ( "id" , String . class ) ) . isTrue ( ) ; }
Check that set/get model.
Check that set / get model .