A http://junit.org test runner to run concurrent unit tests. Runs the tests of one test class in the following order:
- Runs methods marked with org.junit.Before annotation in the main thread.
- Runs methods marked with org.junit.Test annotation. Each method is run in 4 parallel threads.
- Runs methods marked with org.junit.After annotation in the main thread.
See WrongAtomicityStack for an example on how to use org.junit.Before. See RaceConditionVolatileCounter for an example on how to use org.junit.After. Most useful when using a dynamic race condition catcher like http://vmlens.com.
Supported junit versions
concurrent-junit is tested with junit 4.11 and 4.12
<dependency> <groupId>com.vmlens</groupId> <artifactId>concurrent-junit</artifactId> <version>1.0.2</version> </dependency>
concurrent-junit is released under the Eclipse Public License 1.0