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