[concurrency-interest] How has java.util.concurrent.locks been tested?

Oliver Zeigermann ozeigermann@apache.org
Thu, 30 Dec 2004 00:19:26 +0100


Have there been automated tests with multiple threads for the locks in
java.util.concurrent.lock? JUnit test? If so are they available
somewhere?

In 

http://gee.cs.oswego.edu/cgi-bin/viewcvs.cgi/jsr166/src/test/tck/

I have found tests for the other classes, but not for the locks.
Additionally, I was a bit confused as in e.g. ConcurrentHashMapTest
there are no multi-threaded tests as well.

Isn't it common practice to test multi-threaded scenarios? Am I
getting it all wrong again?

Oliver