Uploaded image for project: 'Jackrabbit Content Repository'
  1. Jackrabbit Content Repository
  2. JCR-3480

Extend SaveTest#testConstraintViolationException to cover cases where the validation happens on Session#save

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.5.3
    • Component/s: jackrabbit-jcr-tests
    • Labels:
      None

      Description

      The test is org.apache.jackrabbit.test.api.query.SaveTest located in jackrabbit-jcr-tests.

      The issue is that even thought the api allows for impelmentations that perform lazy validation (at a later Session#save call), the test assumes direct validation and therefore fails when running against Oak code.

      I'm proposing to add a Session#save call to the test to verify that the validation happens either directly or on the save call.

        Attachments

          Activity

            People

            • Assignee:
              stillalex Alex Deparvu
              Reporter:
              stillalex Alex Deparvu
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: