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

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.5.3
    • jackrabbit-jcr-tests
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: