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

Ambiguous exception expectation in SessionMoveVersionExceptionTest and WorkspaceMoveVersionExceptionTest

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.7
    • Fix Version/s: 2.7.1
    • Component/s: jackrabbit-jcr-tests
    • Labels:
      None

      Description

      The exception expectation in testSessionMoveSourceCheckedInVersionException() is ambiguous.

      Session.move() attempts to move a checked in node to a destination where a node already exists. For either case an exception is specified (VersionException and ItemExistsException), but the spec does not say which one takes precedence.

      The test should therefore try to move the node to a location where no node exists.

        Attachments

          Activity

            People

            • Assignee:
              mreutegg Marcel Reutegger
              Reporter:
              mreutegg Marcel Reutegger
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: