Time flies with tempus-fugit

The tempus-fugit micro-library recently released its first version with a couple of neat JUnit integrations. The project is geared towards making concurrent and time sensitive systems more testable and captures common abstractions such as mocking time and waiting for asynchronous conditions. The test cases themselves make interesting reading.

You might be interested though in the @Rule and @Runner implementations it provides. With these, you can setup repeating / concurrent tests to load test systems and there is a convenient ConcurrentTestRunner class for use with @RunWith that will run each test method in parallel (see this blog).

See the wiki on the project's website for full details http://code.google.com/p/tempus-fugit/.