[ http://issues.apache.org/jira/browse/JCR-559?page=all ]
Marcel Reutegger resolved JCR-559.
----------------------------------
Resolution: Duplicate
> AbstractQueryTest.hasDescriptor performing incorrect check
> ----------------------------------------------------------
>
> Key: JCR-559
> URL: http://issues.apache.org/jira/browse/JCR-559
> Project: Jackrabbit
> Issue Type: Bug
> Components: test
> Reporter: Melissa Stopponi
>
> The following method in AbstractQueryTest is incorrect. Accoring to the spec
> (section 6.1.1.1), if an option is not supported it should return "false".
> This method in the TCK instead assumes that "null" will be returned, and as a
> result does not throw an NotExecutableException.
> protected boolean hasDescriptor(String descriptor) {
> return superuser.getRepository().getDescriptor(descriptor) != null;
> }
> It should instead be:
> protected boolean hasDescriptor(String descriptor) {
> return
> superuser.getRepository().getDescriptor(descriptor).equals("true");
> }
> This TCK bug causes the following (5) testcases to fail:
> XPathPosIndexTest.testDocOrderIndexedNotation()
> XPathDocOrderTest.testDocOrderFirstFunction()
> XPathDocOrderTest.testDocOrderLastFunction()
> XPathDocOrderTest.testDocOrderPositionFunction()
> XPathDocOrderTest.testDocOrderPositionIndex()
--
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