From aba7f8efd9ace713b39df3bd13da745f1dd54354 Mon Sep 17 00:00:00 2001 From: Matthias Fischer Date: Fri, 10 May 2024 14:35:49 +0200 Subject: [PATCH] feat(impl): [#528] add step definition for cucumber tests for validating error response message --- .../irs/policystore/validators/ListOfPolicyIdsValidator.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/irs-policy-store/src/main/java/org/eclipse/tractusx/irs/policystore/validators/ListOfPolicyIdsValidator.java b/irs-policy-store/src/main/java/org/eclipse/tractusx/irs/policystore/validators/ListOfPolicyIdsValidator.java index 2d1e09380c..fb1aba2971 100644 --- a/irs-policy-store/src/main/java/org/eclipse/tractusx/irs/policystore/validators/ListOfPolicyIdsValidator.java +++ b/irs-policy-store/src/main/java/org/eclipse/tractusx/irs/policystore/validators/ListOfPolicyIdsValidator.java @@ -49,7 +49,7 @@ public boolean isValid(final List 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; }