org.jboss.cache.tests
Class ReadWriteLockTest

java.lang.Object
  extended byTestCase
      extended byorg.jboss.cache.tests.ReadWriteLockTest

public class ReadWriteLockTest
extends TestCase

Tests the various ReadWriteLock implementations

See Also:
Serialized Form

Constructor Summary
ReadWriteLockTest()
           
 
Method Summary
static void main(java.lang.String[] args)
           
protected  void setUp()
           
static Test suite()
           
protected  void tearDown()
           
 void testMoreReadReleasesThanAcquisitions()
           
 void testMoreWriteReleasesThanAcquisitions()
           
 void testOneWriterMultipleReaders()
           
 void testSimple()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReadWriteLockTest

public ReadWriteLockTest()
Method Detail

setUp

protected void setUp()
              throws java.lang.Exception
Throws:
java.lang.Exception

tearDown

protected void tearDown()
                 throws java.lang.Exception
Throws:
java.lang.Exception

testMoreWriteReleasesThanAcquisitions

public void testMoreWriteReleasesThanAcquisitions()
                                           throws java.lang.InterruptedException
Throws:
java.lang.InterruptedException

testMoreReadReleasesThanAcquisitions

public void testMoreReadReleasesThanAcquisitions()
                                          throws java.lang.InterruptedException
Throws:
java.lang.InterruptedException

testSimple

public void testSimple()
                throws java.lang.InterruptedException
Throws:
java.lang.InterruptedException

testOneWriterMultipleReaders

public void testOneWriterMultipleReaders()
                                  throws java.lang.InterruptedException
Throws:
java.lang.InterruptedException

suite

public static Test suite()

main

public static void main(java.lang.String[] args)