model/src/test/java/eu/internetofus/common/model/ValidateContextTest.java
/**
   * Should create a context for a field .
   *
   * @see ValidateContext#createFieldContext(String)
   */
Should create a context for a field .
Should create a context for a field .
@Test
  public void shouldCreateFieldContext() {
    doReturn("codePrefix5").when(this.context).errorCode();
    doReturn(this.context).when(this.context).createContextWithErrorCode("codePrefix5.field3");
    assertThat(this.context.createFieldContext("field3")).isSameAs(this.context);
  }
@ Test public void shouldCreateFieldContext ( ) { doReturn ( "codePrefix5" ) . when ( this . context ) . errorCode ( ) ; doReturn ( this . context ) . when ( this . context ) . createContextWithErrorCode ( "codePrefix5.field3" ) ; assertThat ( this . context . createFieldContext ( "field3" ) ) . isSameAs ( this . context ) ; }
Should create a context for a field .
Should create a context for a field .