jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Julian Reschke (JIRA)" <j...@apache.org>
Subject [jira] Created: (JCR-547) SimpleSelectionTest assumes RowIterator.getSize() not to return -1
Date Tue, 22 Aug 2006 13:37:14 GMT
SimpleSelectionTest assumes RowIterator.getSize() not to return -1

                 Key: JCR-547
                 URL: http://issues.apache.org/jira/browse/JCR-547
             Project: Jackrabbit
          Issue Type: Bug
          Components: JCR TCK
            Reporter: Julian Reschke
            Priority: Minor

Test case "testSingleProperty" assumes that RowIterator.getSize() will not return -1. This
is an incorrect assumption, according to the JavaDoc for RangeIterator.

Suggested change:

        long size = result.getRows().getSize();
        if (size != -1) {
            assertEquals("Should have only 1 result", 1, size);

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