activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject svn commit: r599539 - /activemq/activemq-cpp/decaf/trunk/src/test/decaf/nio/ByteBufferTest.cpp
Date Thu, 29 Nov 2007 18:44:50 GMT
Author: tabish
Date: Thu Nov 29 10:44:47 2007
New Revision: 599539

URL: http://svn.apache.org/viewvc?rev=599539&view=rev
Log:
http://issues.apache.org/activemq/browse/AMQCPP-103

Working on the NIO package

Modified:
    activemq/activemq-cpp/decaf/trunk/src/test/decaf/nio/ByteBufferTest.cpp

Modified: activemq/activemq-cpp/decaf/trunk/src/test/decaf/nio/ByteBufferTest.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/decaf/trunk/src/test/decaf/nio/ByteBufferTest.cpp?rev=599539&r1=599538&r2=599539&view=diff
==============================================================================
--- activemq/activemq-cpp/decaf/trunk/src/test/decaf/nio/ByteBufferTest.cpp (original)
+++ activemq/activemq-cpp/decaf/trunk/src/test/decaf/nio/ByteBufferTest.cpp Thu Nov 29 10:44:47
2007
@@ -27,8 +27,18 @@
 ////////////////////////////////////////////////////////////////////////////////
 void ByteBufferTest::test() {
 
+    // Check that we have setup the array and our initial assumptions on state
+    // are correct.  This is the first test run.
     CPPUNIT_ASSERT( testBuffer1 != NULL );
     CPPUNIT_ASSERT( testBuffer1->capacity() == testData1Size );
+    CPPUNIT_ASSERT( testBuffer1->hasRemaining() == true );
+    CPPUNIT_ASSERT( testBuffer1->limit() == testBuffer1->capacity() );
+    CPPUNIT_ASSERT( testBuffer1->position() == 0 );
+    CPPUNIT_ASSERT( testBuffer1->isReadOnly() == false );
+    CPPUNIT_ASSERT( testBuffer1->toString() != "" );
+    CPPUNIT_ASSERT( testBuffer1->hasArray() == true );
+    CPPUNIT_ASSERT( testBuffer1->array() != NULL );
+    CPPUNIT_ASSERT( testBuffer1->arrayOffset() == 0 );
 }
 
 ////////////////////////////////////////////////////////////////////////////////



Mime
View raw message