ConcurrentUnit
A simple, zero-dependency toolkit for testing multi-threaded code. Supports Java 1.6 .
Introduction
ConcurrentUnit was created to help developers test multi-threaded or asynchronous code. It allows you to perform assertions and wait for operations in any thread, with failures being properly reported back to the main test thread. If an assertion fails, your test fails, regardless of which thread the assertion came from.
Usage
Create a Waiter
Use Waiter.await to block the main
评论0
最新资源