Monday, July 25, 2005 09:46 AM
Do you want to test the logic within your definition of
, or test that your class is properly multi-threaded? If it's the former, extract the desired logic within your definition of
to a separate method and write a single-threaded test case.
If it's the latter, check out GroboUtils (http://today.java.net/pub/a/today/2003/08/06/multithreadedTests.html).