Package org.jmock.lib.concurrent
package org.jmock.lib.concurrent
Classes to help test concurrent code with jMock.
-
ClassDescriptionA class that "blitzes" an object by calling it many times, from multiple threads.A
ScheduledExecutorService
that executes commands on the thread that callsrunNextPendingCommand
,runUntilIdle
ortick
.A ThreadingPolicy that makes the Mockery thread-safe and helps tests synchronise with background threads.I synchronise my delegate.Thrown to report that aDeterministicScheduler
has been asked to perform a blocking wait, which is not supported.