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 2007/11/29 19:44:50 UTC
svn commit: r599539 -
/activemq/activemq-cpp/decaf/trunk/src/test/decaf/nio/ByteBufferTest.cpp
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 );
}
////////////////////////////////////////////////////////////////////////////////