Java Mailing List Archive

http://www.gg3721.com/

Home » user.jmock »

[jmock-user] Handling concurrent failures on Deterministic{Executor|Scheduler}

Daniel Yokomizo

2012-03-27


Author LoginPost Reply
Hi,

I'm using DeterministicScheduler to stub an Executor and currently
there's no way to assert that a submitted runnable should not have
failed.

If DeterministicScheduler#runNextPendingCommand() returned the
executed ScheduledTask as an ScheduledFuture I could verify it calling
Future#get() and not getting an exception.

Is there any way around this?

Best regards,
Daniel Yokomizo

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

  http://xircles.codehaus.org/manage_email


©2008 gg3721.com - Jax Systems, LLC, U.S.A.