Francesco Mari created OAK-7449:
-----------------------------------

             Summary: ObservationQueueFullWarnTest#testQueueFullThenFlushing 
requires to know the number of events upfront
                 Key: OAK-7449
                 URL: https://issues.apache.org/jira/browse/OAK-7449
             Project: Jackrabbit Oak
          Issue Type: Improvement
          Components: jcr
            Reporter: Francesco Mari
            Assignee: Francesco Mari


The test {{ObservationQueueFullWarnTest#testQueueFullThenFlushing}} uses 
{{EventIterator#getSize}} but it always assumes that the method returns a 
positive value. Instead, the Javadoc for {{EventIterator#getSize}} states that 
the implementation must return {{-1}} if there aren't any information about the 
precise number of elements. The test should be adapted in order to account for 
this corner case.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to