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

    • Sub-task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.5.1
    • jackrabbit-jcr-tests
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: