You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by ta...@apache.org on 2012/06/06 16:32:50 UTC

svn commit: r1346916 [3/3] - in /activemq/activemq-cpp/trunk/activemq-cpp/src: main/decaf/util/concurrent/locks/ test/decaf/util/concurrent/locks/

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/test/decaf/util/concurrent/locks/ReentrantReadWriteLockTest.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/test/decaf/util/concurrent/locks/ReentrantReadWriteLockTest.h?rev=1346916&r1=1346915&r2=1346916&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/test/decaf/util/concurrent/locks/ReentrantReadWriteLockTest.h (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/test/decaf/util/concurrent/locks/ReentrantReadWriteLockTest.h Wed Jun  6 14:32:50 2012
@@ -31,6 +31,65 @@ namespace locks {
 
         CPPUNIT_TEST_SUITE( ReentrantReadWriteLockTest );
         CPPUNIT_TEST( testConstructor );
+        CPPUNIT_TEST( testLock );
+        CPPUNIT_TEST( testFairLock );
+        CPPUNIT_TEST( testGetWriteHoldCount );
+        CPPUNIT_TEST( testUnlockIllegalMonitorStateException );
+        CPPUNIT_TEST( testReadHoldingWriteLock );
+        CPPUNIT_TEST( testReadHoldingWriteLock2 );
+        CPPUNIT_TEST( testReadHoldingWriteLock3 );
+        CPPUNIT_TEST( testReadHoldingWriteLockFair );
+        CPPUNIT_TEST( testAwaitIllegalMonitor );
+        CPPUNIT_TEST( testSignalIllegalMonitor );
+        CPPUNIT_TEST( testAwaitNanosTimeout );
+        CPPUNIT_TEST( testAwaitTimeout );
+        CPPUNIT_TEST( testAwaitUntilTimeout );
+        CPPUNIT_TEST( testHasQueuedThreadNPE );
+        CPPUNIT_TEST( testHasWaitersNPE );
+        CPPUNIT_TEST( testGetWaitQueueLengthNPE );
+        CPPUNIT_TEST( testGetWaitingThreadsNPE );
+        CPPUNIT_TEST( testHasWaitersIAE );
+        CPPUNIT_TEST( testHasWaitersIMSE );
+        CPPUNIT_TEST( testGetWaitQueueLengthIAE );
+        CPPUNIT_TEST( testGetWaitQueueLengthIMSE );
+        CPPUNIT_TEST( testGetWaitingThreadsIAE );
+        CPPUNIT_TEST( testGetWaitingThreadsIMSE );
+        CPPUNIT_TEST( testToString );
+        CPPUNIT_TEST( testReadLockToString );
+        CPPUNIT_TEST( testWriteLockToString );
+        CPPUNIT_TEST( testWriteLockInterruptiblyInterrupted );
+        CPPUNIT_TEST( testWriteTryLockInterrupted );
+        CPPUNIT_TEST( testReadLockInterruptiblyInterrupted );
+        CPPUNIT_TEST( testReadTryLockInterrupted );
+        CPPUNIT_TEST( testWriteTryLockWhenLocked );
+        CPPUNIT_TEST( testReadTryLockWhenLocked );
+        CPPUNIT_TEST( testMultipleReadLocks );
+        CPPUNIT_TEST( testReadAfterWriteLock );
+        CPPUNIT_TEST( testWriteHoldingWriteLock4 );
+        CPPUNIT_TEST( testReadHoldingWriteLockFair2 );
+        CPPUNIT_TEST( testReadHoldingWriteLockFair3 );
+        CPPUNIT_TEST( testWriteHoldingWriteLockFair4 );
+        CPPUNIT_TEST( testTryLockWhenReadLocked );
+//        CPPUNIT_TEST( testWriteAfterMultipleReadLocks );
+        CPPUNIT_TEST( testTryLockWhenReadLockedFair );
+        CPPUNIT_TEST( testWriteTryLockWhenReadLockedFair );
+        CPPUNIT_TEST( testWriteTryLockTimeout );
+        CPPUNIT_TEST( testReadTryLockTimeout );
+        CPPUNIT_TEST( testWriteLockInterruptibly );
+        CPPUNIT_TEST( testReadLockInterruptibly );
+        CPPUNIT_TEST( testAwait );
+        CPPUNIT_TEST( testAwaitUninterruptibly );
+        CPPUNIT_TEST( testAwaitInterrupt );
+        CPPUNIT_TEST( testAwaitNanosInterrupt );
+        CPPUNIT_TEST( testAwaitUntilInterrupt );
+        CPPUNIT_TEST( testSignalAll );
+        CPPUNIT_TEST( testHasQueuedThreads );
+        CPPUNIT_TEST( testHasQueuedThread );
+        CPPUNIT_TEST( testGetQueueLength );
+        CPPUNIT_TEST( testGetQueuedThreads );
+        CPPUNIT_TEST( testHasWaiters );
+        CPPUNIT_TEST( testGetWaitQueueLength );
+        CPPUNIT_TEST( testGetWaitingThreads );
         CPPUNIT_TEST_SUITE_END();
 
     public:
@@ -39,6 +98,66 @@ namespace locks {
         virtual ~ReentrantReadWriteLockTest();
 
         void testConstructor();
+        void testLock();
+        void testFairLock();
+        void testWriteLockInterruptiblyInterrupted();
+        void testGetWriteHoldCount();
+        void testUnlockIllegalMonitorStateException();
+        void testReadHoldingWriteLock();
+        void testReadHoldingWriteLock2();
+        void testReadHoldingWriteLock3();
+        void testReadHoldingWriteLockFair();
+        void testAwaitIllegalMonitor();
+        void testSignalIllegalMonitor();
+        void testAwaitNanosTimeout();
+        void testAwaitTimeout();
+        void testAwaitUntilTimeout();
+        void testHasQueuedThreadNPE();
+        void testHasWaitersNPE();
+        void testGetWaitQueueLengthNPE();
+        void testGetWaitingThreadsNPE();
+        void testHasWaitersIAE();
+        void testHasWaitersIMSE();
+        void testGetWaitQueueLengthIAE();
+        void testGetWaitQueueLengthIMSE();
+        void testGetWaitingThreadsIAE();
+        void testGetWaitingThreadsIMSE();
+        void testToString();
+        void testReadLockToString();
+        void testWriteLockToString();
+        void testWriteTryLockInterrupted();
+        void testReadLockInterruptiblyInterrupted();
+        void testReadTryLockInterrupted();
+        void testWriteTryLockWhenLocked();
+        void testReadTryLockWhenLocked();
+        void testMultipleReadLocks();
+        void testWriteAfterMultipleReadLocks();
+        void testReadAfterWriteLock();
+        void testWriteHoldingWriteLock4();
+        void testReadHoldingWriteLockFair2();
+        void testReadHoldingWriteLockFair3();
+        void testWriteHoldingWriteLockFair4();
+        void testTryLockWhenReadLocked();
+        void testWriteTryLockWhenReadLocked();
+        void testTryLockWhenReadLockedFair();
+        void testWriteTryLockWhenReadLockedFair();
+        void testWriteTryLockTimeout();
+        void testReadTryLockTimeout();
+        void testWriteLockInterruptibly();
+        void testReadLockInterruptibly();
+        void testAwait();
+        void testAwaitUninterruptibly();
+        void testAwaitInterrupt();
+        void testAwaitNanosInterrupt();
+        void testAwaitUntilInterrupt();
+        void testSignalAll();
+        void testHasQueuedThreads();
+        void testHasQueuedThread();
+        void testGetQueueLength();
+        void testGetQueuedThreads();
+        void testHasWaiters();
+        void testGetWaitQueueLength();
+        void testGetWaitingThreads();
 
     };