components/src/test/java/eu/internetofus/common/components/WeNetValidateContextTest.java
/**
   * Check that can not obtain model with the same key if the type is different.
   */
Check that can not obtain model with the same key if the type is different.
Check that can not obtain model with the same key if the type is different .
@Test
  public void shouldNoGetModelWithSameKeyDiferentClass() {
    final var cache = new WeNetValidateContext("codePrefix", null);
    cache.setModel("id", 3);
    assertThat(cache.getModel("id", Number.class)).isNull();
  }
@ Test public void shouldNoGetModelWithSameKeyDiferentClass ( ) { final var cache = new WeNetValidateContext ( "codePrefix" , null ) ; cache . setModel ( "id" , 3 ) ; assertThat ( cache . getModel ( "id" , Number . class ) ) . isNull ( ) ; }
Check that can not obtain model with the same key if the type is different.
Check that can not obtain model with the same key if the type is different .