[dna-issues] [JBoss JIRA] Resolved: (DNA-579) JcrObservationManagerTest Should Check To See If Listeners Receive Too Many Events

Dan Florian (JIRA) jira-events at lists.jboss.org
Tue Dec 8 15:55:30 EST 2009


     [ https://jira.jboss.org/jira/browse/DNA-579?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dan Florian resolved DNA-579.
-----------------------------

    Resolution: Done


Changed JcrObservationManagerTest  CountDownLatch to use the expected number of EventIterators (which is usually only one) instead of the expected number of events. Then when the going through the iterator I determine if the correct number of events have been received. An EventIterator is received each time a "transaction" is committed.

> JcrObservationManagerTest Should Check To See If Listeners Receive Too Many Events
> ----------------------------------------------------------------------------------
>
>                 Key: DNA-579
>                 URL: https://jira.jboss.org/jira/browse/DNA-579
>             Project: DNA
>          Issue Type: Bug
>          Components: JCR
>    Affects Versions: 0.7
>            Reporter: Dan Florian
>            Assignee: Dan Florian
>             Fix For: 0.7
>
>
> The JcrObservationManagerTest is using a CountDownLatch to determine if the correct number of events are received by a JCR event listener. Once the correct number of events are received the test listener "quits" listening and the test passes (assuming the received events were the correct ones). What the test does not check is if too many events could've been broadcast to a listener (i.e., events that the listener has not been registered to receive).

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the dna-issues mailing list