Multithreaded Testing with JUnit and Java 5 Concurrency
2008年09月05日 19:19 • 查看 2 次 • 打印本文This entry describes a technique for writing multi-threaded automated (*Unit-style) stress tests in a safe and reliable fashion by leveraging the concurrency utilities added in Java 5. It’s a technique that should not be used gratuitously as it’s more heavy-weight than a standard unit-test, but is appropriate for in some scenarios. It’s surprisingly simple considering what it’s doing. A complete, easy-to-run example is referenced at the bottom.
评论
发表评论