On 4/13/10 4:27 AM, Bertrand Delacretaz wrote: > Hi Justin, > > On Mon, Apr 12, 2010 at 11:08 PM, Justin Edelson <[email protected]> wrote: >> Is there any good way to flush the event queue in Jackrabbit 2? I'm >> trying to do this in the context of an integration test... > > The EventHelper class [1] in Sling's jcrinstall test suite allows you > to wait until all events have been delivered, by creating a node and > waiting for the corresponding events to arrive. > Thanks Bertrand. This should work.
Any objections to me moving this to commons.testing? Justin > It assumes that events are delivered in the order they were generated, > which works so far with Jackrabbit - dunno if the JCR spec mandates > that. > > -Bertrand > > [1] > http://svn.apache.org/repos/asf/sling/trunk/installer/jcr/jcrinstall/src/test/java/org/apache/sling/jcr/jcrinstall/impl/EventHelper.java
