Uploaded image for project: 'Jackrabbit Content Repository'
  1. Jackrabbit Content Repository
  2. JCR-547

SimpleSelectionTest assumes RowIterator.getSize() not to return -1

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 1.1
    • jackrabbit-jcr-tests
    • None

    Description

      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); }

      Attachments

        Activity

          People

            Unassigned Unassigned
            reschke Julian Reschke
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: