components/src/test/java/eu/internetofus/common/components/WeNetValidateContextTest.java
/**
   * Check that can not obtain model with undefined or {@code null} arguments.
   */
Check that can not obtain model with undefined or  null arguments.
Check that can not obtain model with undefined or null arguments .
@Test
  public void shouldNoGetUndefinedModel() {
    final var cache = new WeNetValidateContext("codePrefix", null);
    assertThat(cache.getModel(null, (Class<?>) null)).isNull();
    assertThat(cache.getModel("undefined", (Class<?>) null)).isNull();
    assertThat(cache.getModel(null, String.class)).isNull();
    assertThat(cache.getModel("undefined", String.class)).isNull();
  }
@ Test public void shouldNoGetUndefinedModel ( ) { final var cache = new WeNetValidateContext ( "codePrefix" , null ) ; assertThat ( cache . getModel ( null , ( Class < ? > ) null ) ) . isNull ( ) ; assertThat ( cache . getModel ( "undefined" , ( Class < ? > ) null ) ) . isNull ( ) ; assertThat ( cache . getModel ( null , String . class ) ) . isNull ( ) ; assertThat ( cache . getModel ( "undefined" , String . class ) ) . isNull ( ) ; }
Check that can not obtain model with undefined or {@code null} arguments.
Check that can not obtain model with undefined or { @code null } arguments .