-
Bug
-
Resolution: Done
-
Major
-
None
-
None
-
None
Fix ValidationComplexTest custom bean validation constraint
ValidationComplexTest uses ValidationComplexOtherGroupConstraint. This constraint uses ValidationComplexClassValidator. But ValidationComplexClassValidator can be used only for ValidationComplexClassConstraint.
WF used hibernate-validator-6.0.9.Final in the past and this old validator ignores this constraint bug. But now, WF uses hibernate-validator-cdi-6.0.10.Final. And test ValidationComplexTest#testOtherGroups fails with new hibernate-validator-cdi-6.0.10.Final:
javax.validation.ConstraintDefinitionException: HV000243: Constraint org.jboss.resteasy.test.validation.resource.ValidationComplexOtherGroupConstraint references constraint validator type org.jboss.resteasy.test.validation.resource.ValidationComplexClassValidator, but this validator is defined for constraint type org.jboss.resteasy.test.validation.resource.ValidationComplexClassConstraint