Uploaded image for project: 'Jackrabbit Content Repository'
  1. Jackrabbit Content Repository
  2. JCR-3301 Remove incorrect test assumptions
  3. JCR-3324

TCK: GetQueryTest.testGetQuery() unnecessarily uses a same name sibling

    XMLWordPrintableJSON

    Details

    • Type: Sub-task
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.5.1
    • Component/s: jackrabbit-jcr-tests
    • Labels:
      None

      Description

      The test case GetQueryTest.testGetQuery() first creates a node testRoot/node1:

      testRootNode.addNode(nodeName1, testNodeType);

      and then creates another node with the same name below:

      Node stored = q.storeAsNode(testRoot + "/" + nodeName1);

      This results in a same name sibling, which is later removed:

      stored.remove();

      But the test case isn't about same name siblings, and could store the node under a different name instead:

      Node stored = q.storeAsNode(testRoot + "/storedQuery");

        Attachments

          Activity

            People

            • Assignee:
              thomasm Thomas Mueller
              Reporter:
              thomasm Thomas Mueller
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: