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

Ambiguous exception expectation in SessionMoveVersionExceptionTest and WorkspaceMoveVersionExceptionTest

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.7
    • 2.7.1
    • jackrabbit-jcr-tests
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: