model/src/test/java/eu/internetofus/common/model/ValidationErrorExceptionTest.java
/**
   * Check that create with a code, cause and message.
   */
Check that create with a code, cause and message.
Check that create with a code cause and message .
@Test
  public void shouldCreateWithCodeCauseAndMessage() {
    final var cause = new Throwable("cause");
    final var error = new ValidationErrorException("code", "message", cause);
    assertThat(error.getCode()).isEqualTo("code");
    assertThat(error.getMessage()).isEqualTo("message");
    assertThat(error.getCause()).isEqualTo(cause);
  }
@ Test public void shouldCreateWithCodeCauseAndMessage ( ) { final var cause = new Throwable ( "cause" ) ; final var error = new ValidationErrorException ( "code" , "message" , cause ) ; assertThat ( error . getCode ( ) ) . isEqualTo ( "code" ) ; assertThat ( error . getMessage ( ) ) . isEqualTo ( "message" ) ; assertThat ( error . getCause ( ) ) . isEqualTo ( cause ) ; }
Check that create with a code, cause and message.
Check that create with a code cause and message .