What framework would you recommend for writing unit tests for multi-threaded code in Java? For example, when you have a program that needs to execute a bunch of threads with several valid execution paths and some excluded paths (for example, "executable block 1, 2 and 3 can work in parallel, at least two should be executed in parallel, and 4 should always work after 3 ").
java multithreading concurrency unit-testing
Tim van beek
source share