jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Melissa Stopponi (JIRA)" <j...@apache.org>
Subject [jira] Created: (JCR-559) AbstractQueryTest.hasDescriptor performing incorrect check
Date Fri, 01 Sep 2006 23:09:22 GMT
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,
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:



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


View raw message