« Return to Thread: JMock not thread safe - how does one do multi-threaded testing?

Re: JMock not thread safe - how does one do multi-threaded testing?

by Steve Freeman-2 :: Rate this Message:

Reply to Author | View in Thread

You might want to see Nat's slides on testing async code

http://www.natpryce.com/articles/000755.html

and his series of articles about JMock and Threads.

You'll probably also need to pull the latest code from the subversion  
repository.

S.

On 1 Apr 2009, at 11:27, James Abley wrote:
> The current policy of not supporting multi-threaded tests has just
> bitten me. We've got a spanking new CI server with multiple cores and
> are now getting build failures; I think due to JMock not being
> thread-safe; specifically the Mockery class which is declared as an
> instance of my test fixture and used throughout each @Test method.

Steve Freeman
Winner of the Agile Alliance Gordon Pask award 2006

http://www.m3p.co.uk

M3P Limited.
Registered office. 2 Church Street, Burnham, Bucks, SL1 7HZ.
Company registered in England & Wales. Number 03689627



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

    http://xircles.codehaus.org/manage_email


 « Return to Thread: JMock not thread safe - how does one do multi-threaded testing?