Skip to content
This repository has been archived by the owner on Nov 23, 2021. It is now read-only.

Commit

Permalink
Merge pull request #243 from henning-cg/fix_#242
Browse files Browse the repository at this point in the history
Make RestServiceExceptionFacadeTest#testConstraintViolationExceptions…
  • Loading branch information
hohwille committed Jun 9, 2015
2 parents 7cabeff + 017f34b commit d55b0a4
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@ public CounterTest(Integer count) {
Set<ConstraintViolation<CounterTest>> violations = validator.validate(counter);

RestServiceExceptionFacade exceptionFacade = getExceptionFacade();
String message = "{count=[must be greater than or equal to 10]}";
String errors = "{count=[must be greater than or equal to 10]}";
String message = "{count=[" + violations.iterator().next().getMessage() + "]}";
String errors = "{count=[" + violations.iterator().next().getMessage() + "]}";
Throwable error = new ConstraintViolationException(violations);
checkFacade(exceptionFacade, error, 400, message, UUID_ANY, ValidationErrorUserException.CODE, errors);

Expand Down

0 comments on commit d55b0a4

Please sign in to comment.