activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject svn commit: r810661 - /activemq/activemq-cpp/trunk/activemq-cpp/src/test/decaf/util/concurrent/SynchronousQueueTest.cpp
Date Wed, 02 Sep 2009 18:41:16 GMT
Author: tabish
Date: Wed Sep  2 18:41:16 2009
New Revision: 810661

URL: http://svn.apache.org/viewvc?rev=810661&view=rev
Log:
Start testing the basic methods that are implemented.

Modified:
    activemq/activemq-cpp/trunk/activemq-cpp/src/test/decaf/util/concurrent/SynchronousQueueTest.cpp

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/test/decaf/util/concurrent/SynchronousQueueTest.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/test/decaf/util/concurrent/SynchronousQueueTest.cpp?rev=810661&r1=810660&r2=810661&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/test/decaf/util/concurrent/SynchronousQueueTest.cpp
(original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/test/decaf/util/concurrent/SynchronousQueueTest.cpp
Wed Sep  2 18:41:16 2009
@@ -17,6 +17,8 @@
 
 #include "SynchronousQueueTest.h"
 
+#include <decaf/util/concurrent/SynchronousQueue.h>
+
 using namespace std;
 using namespace decaf;
 using namespace decaf::lang;
@@ -26,4 +28,10 @@
 ///////////////////////////////////////////////////////////////////////////////
 void SynchronousQueueTest::testConstructor_1() {
 
+    SynchronousQueue<int> q;
+
+    CPPUNIT_ASSERT( q.isEmpty() );
+    CPPUNIT_ASSERT( 0 == q.size() );
+    CPPUNIT_ASSERT( 0 == q.remainingCapacity() );
+    CPPUNIT_ASSERT( !q.offer( 0 ) );
 }



Mime
View raw message