org.jboss.test.cache.stress
Class ReadWriteLockWithUpgradeStressTestCase
java.lang.Object
TestCase
org.jboss.test.cache.stress.ReadWriteLockWithUpgradeStressTestCase
- public class ReadWriteLockWithUpgradeStressTestCase
- extends TestCase
Stress test for RWLock with upgrade.
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ReadWriteLockWithUpgradeStressTestCase
public ReadWriteLockWithUpgradeStressTestCase(java.lang.String name)
main
public static void main(java.lang.String[] args)
throws java.lang.Exception
- Throws:
java.lang.Exception
suite
public static Test suite()
setUp
public void setUp()
tearDown
public void tearDown()
readAttemptThread
protected java.lang.Thread readAttemptThread(java.lang.String name,
long msecs)
writeAttemptThread
protected java.lang.Thread writeAttemptThread(java.lang.String name,
long msecs)
upgradeAttemptThread
protected java.lang.Thread upgradeAttemptThread(java.lang.String name,
long msecs)
testWriteWriteAttempt
public void testWriteWriteAttempt()
throws java.lang.Exception
- Throws:
java.lang.Exception
testReadWriteAttempt1
public void testReadWriteAttempt1()
throws java.lang.Exception
- Throws:
java.lang.Exception
testReadWriteAttempt2
public void testReadWriteAttempt2()
throws java.lang.Exception
- Throws:
java.lang.Exception
testReadWriteAttempt3
public void testReadWriteAttempt3()
throws java.lang.Exception
- Throws:
java.lang.Exception
log
public static void log(java.lang.String str)