Showing posts with label jmock. Show all posts
Showing posts with label jmock. Show all posts

Wednesday, 13 October 2010

Multi-threading with JMock

A way to make jmock 'pause' when running a test:

http://www.jmock.org/threading-scheduler.html


DeterministicScheduler scheduler = new DeterministicScheduler();
scheduler.tick(500, TimeUnit.MILLISECONDS);