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

TCK: OrderByMultiTypeTest doesn't respect nodetype configuration property

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.1
    • test
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: