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

AbstractJCRTest fails on level 1 repositories

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 1.1
    • jackrabbit-jcr-tests
    • None

    Description

      If a test case indicates that it's not read-only, org.apache.jackrabbit.test.AbstractJCRTest tries to cleanup the test root in the setUp method. This will cause the test case to fail, because a Level 1 repository will throw an UnsupportedOperationException here.

      Proposal: before trying the cleanup, check for L2 functionality and throw a NotExecutableException otherwise:

      if (! isSupported(Repository.LEVEL_2_SUPPORTED))

      { cleanUp(); String msg = "Test case requires level 2 functionality"; throw new NotExecutableException(msg); }

      Attachments

        1. JCR-540.diff.txt
          0.7 kB
          Julian Reschke
        2. JCR-540.diff.txt
          0.7 kB
          Julian Reschke
        3. JCR-540-svn430367.patch
          1 kB
          Marcel Reutegger

        Activity

          People

            Unassigned Unassigned
            reschke Julian Reschke
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: