org.jboss.cache.tests
Class ReentrantWriterPreferenceReadWriteLockTest

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended byorg.jboss.cache.tests.ReentrantWriterPreferenceReadWriteLockTest
All Implemented Interfaces:
junit.framework.Test

public class ReentrantWriterPreferenceReadWriteLockTest
extends junit.framework.TestCase

Tests ReentrantWriterPreferenceReadWriteLock

Version:
$Id: ReentrantWriterPreferenceReadWriteLockTest.java,v 1.3.2.2 2005/04/06 21:07:04 starksm Exp $
Author:
Bela Ban

Constructor Summary
ReentrantWriterPreferenceReadWriteLockTest()
           
 
Method Summary
 void acquireReadAndWriteLocks()
           
 void acquireWriteThenReadLock()
           
static void main(String[] args)
           
protected  void setUp()
           
static junit.framework.Test suite()
           
protected  void tearDown()
           
 void test2ReadersAnd1Writer()
           
 void testAcquireWriteLockAfterReadLock()
           
 void testAcquiringReadLockedLock()
           
 void testAcquiringReadLockedLockWithRead()
           
 void testMultipleReadLockAcquisitions()
           
 void testMultipleReadLockReleases()
           
 void testMultipleWriteLockAcquisitions()
           
 void testMultipleWriteLockReleases()
           
 void testReadThenWriteByDifferentTx()
           
 void testWriteThenReadByDifferentTx()
           
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ReentrantWriterPreferenceReadWriteLockTest

public ReentrantWriterPreferenceReadWriteLockTest()
Method Detail

setUp

protected void setUp()
              throws Exception
Throws:
Exception

tearDown

protected void tearDown()
                 throws Exception
Throws:
Exception

testMultipleReadLockAcquisitions

public void testMultipleReadLockAcquisitions()
                                      throws InterruptedException
Throws:
InterruptedException

testMultipleWriteLockAcquisitions

public void testMultipleWriteLockAcquisitions()
                                       throws InterruptedException
Throws:
InterruptedException

testMultipleReadLockReleases

public void testMultipleReadLockReleases()
                                  throws InterruptedException
Throws:
InterruptedException

acquireReadAndWriteLocks

public void acquireReadAndWriteLocks()
                              throws InterruptedException
Throws:
InterruptedException

acquireWriteThenReadLock

public void acquireWriteThenReadLock()
                              throws InterruptedException
Throws:
InterruptedException

testMultipleWriteLockReleases

public void testMultipleWriteLockReleases()
                                   throws InterruptedException
Throws:
InterruptedException

testAcquireWriteLockAfterReadLock

public void testAcquireWriteLockAfterReadLock()
                                       throws InterruptedException
Throws:
InterruptedException

testAcquiringReadLockedLockWithRead

public void testAcquiringReadLockedLockWithRead()
                                         throws InterruptedException
Throws:
InterruptedException

testAcquiringReadLockedLock

public void testAcquiringReadLockedLock()
                                 throws InterruptedException
Throws:
InterruptedException

test2ReadersAnd1Writer

public void test2ReadersAnd1Writer()
                            throws InterruptedException
Throws:
InterruptedException

testWriteThenReadByDifferentTx

public void testWriteThenReadByDifferentTx()
                                    throws InterruptedException
Throws:
InterruptedException

testReadThenWriteByDifferentTx

public void testReadThenWriteByDifferentTx()
                                    throws InterruptedException
Throws:
InterruptedException

suite

public static junit.framework.Test suite()

main

public static void main(String[] args)


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.