jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Pitfield (JIRA)" <j...@apache.org>
Subject [jira] Created: (JCR-531) TCK: OrderByMultiTypeTest doesn't respect nodetype configuration property
Date Fri, 04 Aug 2006 19:36:13 GMT
TCK: OrderByMultiTypeTest doesn't respect nodetype configuration property
-------------------------------------------------------------------------

                 Key: JCR-531
                 URL: http://issues.apache.org/jira/browse/JCR-531
             Project: Jackrabbit
          Issue Type: Bug
          Components: test
            Reporter: David Pitfield


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);


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message