I used the Observer-Pattern, to test my implementation of the provided DB interface: Each Thread get registered as an topic to my observer and the observer gets updated when a status of a registered thread changed (e.g. "tries to get lock", "got lock", "unlock", ..). The observer checks for each update, that e.g. only one threads holds a lock for an recNo. The test isn't finished, until all Thread finished.
Best regards,
R
PS: General MultiThread-Testing for
junit:
http://groboutils.sourceforge.net/ OR junit4
[ January 29, 2007: Message edited by: Rudolph Jen ]