Helper for testing multi-threaded programs in Java
This post was originally published on the Transylvania JUG blog.
Testing multi-threaded code is hard. The main problem is that you
invoke your assertions either too soon (and they fail for no good
reason) or too late (in which case the test runs for a long time,
frustrating you). A ...