jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marcel Reutegger (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (JCR-559) AbstractQueryTest.hasDescriptor performing incorrect check
Date Fri, 01 Dec 2006 08:33:22 GMT
     [ 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

        

Mime
View raw message