Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-2763

Tweak PostServletCreateTest.testCreatingNodeUnderFile test to allow the presence of a PersistenceException

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • Launchpad Testing 10
    • Testing
    • None

    Description

      Running PostServletCreateTest.testCreatingNodeUnderFile against an Oak repo, the test fails because it expects to see a ConstraintViolationException on the page.

      As oak has a different behavior wrt the moment when it throws the ConstraintViolationException, it may end up being wrapped into a PersistenceException which will fail the test even if the overall expectations are met.

      Attachments

        1. SLING-2763.patch
          1 kB
          Alex Deparvu

        Issue Links

          Activity

            People

              cziegeler Carsten Ziegeler
              stillalex Alex Deparvu
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: