"flushing" the event queue

2010-04-12 Thread Justin Edelson
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. I can get the effect I want using SynchronousEventListener, but this creates a Jackrabbit dependency in a place where their shouldn't be one. Thanks, Justin

Re: "flushing" the event queue

2010-04-13 Thread Bertrand Delacretaz
Hi Justin, On Mon, Apr 12, 2010 at 11:08 PM, Justin Edelson 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 hav

Re: "flushing" the event queue

2010-04-13 Thread Justin Edelson
On 4/13/10 4:27 AM, Bertrand Delacretaz wrote: > Hi Justin, > > On Mon, Apr 12, 2010 at 11:08 PM, Justin Edelson 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 jc