diff --git a/irs-policy-store/src/test/java/org/eclipse/tractusx/irs/policystore/validators/BusinessPartnerNumberListValidatorTest.java b/irs-policy-store/src/test/java/org/eclipse/tractusx/irs/policystore/validators/BusinessPartnerNumberListValidatorTest.java index b577b7796..e4de07319 100644 --- a/irs-policy-store/src/test/java/org/eclipse/tractusx/irs/policystore/validators/BusinessPartnerNumberListValidatorTest.java +++ b/irs-policy-store/src/test/java/org/eclipse/tractusx/irs/policystore/validators/BusinessPartnerNumberListValidatorTest.java @@ -141,23 +141,30 @@ public BusinessPartnerNumberListValidatorBuilder allowDefault(boolean allowDefau } public BusinessPartnerNumberListValidator build() { - ValidListOfBusinessPartnerNumbers annotation = new ValidListOfBusinessPartnerNumbers() { + + final var annotation = new ValidListOfBusinessPartnerNumbers() { + + @Override public Class annotationType() { return ValidListOfBusinessPartnerNumbers.class; } + @Override public String message() { return message; } + @Override public Class[] groups() { return groups; } + @Override public Class[] payload() { return payload; } + @Override public boolean allowDefault() { return allowDefault; }