Skip to content

Commit

Permalink
feat(impl): [#528] add step definition for cucumber tests for validat…
Browse files Browse the repository at this point in the history
…ing error response message
  • Loading branch information
dsmf committed May 10, 2024
1 parent 4db48e9 commit aba7f8e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public boolean isValid(final List<String> value, final ConstraintValidatorContex
for (int index = 0; index < value.size(); index++) {
if (!PolicyIdValidator.isValid(value.get(index))) {
context.disableDefaultConstraintViolation();
final String msg = "The policyId at index %d is invalid (should be a valid UUID)";
final String msg = "The policyId at index %d is invalid (must be a valid UUID)";
context.buildConstraintViolationWithTemplate(msg.formatted(index)).addConstraintViolation();
return false;
}
Expand Down

0 comments on commit aba7f8e

Please sign in to comment.