Uploaded image for project: 'RESTEasy'
  1. RESTEasy
  2. RESTEASY-1910

Fix ValidationComplexTest custom bean validation constraint

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 3.6.0.Final, 4.0.0.Beta4
    • 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

              mkopecky@redhat.com Marek Kopecky
              mkopecky@redhat.com Marek Kopecky
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: