model/src/test/java/eu/internetofus/common/model/ValidateContextTest.java
/**
   * Should create a context for a field element.
   *
   * @see ValidateContext#createFieldElementContext(String, int)
   */
Should create a context for a field element.
Should create a context for a field element .
@Test
  public void shouldCreateFieldElementContext() {
    doReturn("codePrefix4").when(this.context).errorCode();
    doReturn(this.context).when(this.context).createContextWithErrorCode("codePrefix4.field2[6]");
    assertThat(this.context.createFieldElementContext("field2", 6)).isSameAs(this.context);
  }
@ Test public void shouldCreateFieldElementContext ( ) { doReturn ( "codePrefix4" ) . when ( this . context ) . errorCode ( ) ; doReturn ( this . context ) . when ( this . context ) . createContextWithErrorCode ( "codePrefix4.field2[6]" ) ; assertThat ( this . context . createFieldElementContext ( "field2" , 6 ) ) . isSameAs ( this . context ) ; }
Should create a context for a field element.
Should create a context for a field element .