I did some debugging, and it seems that the @BeforeClass method in
TestB really won't start running until the @BeforeClass method in
TestA is complete. The reason for this is in
org.testng.internal.TestMethodWorker.invokeBeforeClassMethods() - the
actual BeforeClass method invocation is within a synchronized block.
So thread 9 can't run TestB.setup() until thread 8 relinquishes
control of the synchronized object, which it doesn't until TestA.setup
() is finished.
Thanks a lot for your help, and thanks for creating and maintaining
such a great project.
2009/9/1 Cédric Beust ♔ <cbe...@google.com>:
Ajit
2009/9/1 Cédric Beust ♔ <cbe...@google.com>: