jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bertrand Delacretaz <bdelacre...@apache.org>
Subject Re: "flushing" the event queue
Date Tue, 13 Apr 2010 08:27:41 GMT
Hi Justin,

On Mon, Apr 12, 2010 at 11:08 PM, Justin Edelson <justin@helemus.com> 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.

It assumes that events are delivered in the order they were generated,
which works so far with Jackrabbit - dunno if the JCR spec mandates


[1] http://svn.apache.org/repos/asf/sling/trunk/installer/jcr/jcrinstall/src/test/java/org/apache/sling/jcr/jcrinstall/impl/EventHelper.java

View raw message