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

TCK: OrderByMultiTypeTest doesn't respect nodetype configuration property

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.1
    • Component/s: test
    • Labels:
      None

      Description

      OrderByMultiTypeTest creates test data by calling addNode(String). This fails if there is no default primary type.

      Proposal: call addNode(String, String)

      — OrderByMultiTypeTest.java (revision 428760)
      +++ OrderByMultiTypeTest.java (working copy)
      @@ -43,9 +43,9 @@

      • Tests order by queries with a String property and a long property.
        */
        public void testMultipleOrder() throws Exception {
      • Node n1 = testRootNode.addNode(nodeName1);
      • Node n2 = testRootNode.addNode(nodeName2);
      • Node n3 = testRootNode.addNode(nodeName3);
        + Node n1 = testRootNode.addNode(nodeName1, testNodeType);
        + Node n2 = testRootNode.addNode(nodeName2, testNodeType);
        + Node n3 = testRootNode.addNode(nodeName3, testNodeType);

      n1.setProperty(propertyName1, "aaa");
      n1.setProperty(propertyName2, 3);

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              dpitfiel David Pitfield
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: