[ http://issues.apache.org/jira/browse/JCR-531?page=all ]
Marcel Reutegger resolved JCR-531.
----------------------------------
Fix Version/s: 1.1
Resolution: Fixed
Changed test case as proposed.
svn revision: 429267
Thank you for reporting this issue.
> 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
> Fix For: 1.1
>
>
> 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