activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject svn commit: r598766 - /activemq/activemq-cpp/decaf/trunk/src/test/decaf/nio/ByteBufferTest.cpp
Date Tue, 27 Nov 2007 21:07:17 GMT
Author: tabish
Date: Tue Nov 27 13:07:16 2007
New Revision: 598766

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

Starting the NIO implementation

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=598766&r1=598765&r2=598766&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 Tue Nov 27 13:07:16
2007
@@ -129,20 +129,13 @@
     testBuffer1->clear();
     testBuffer1->mark();
 
-    testBuffer1->put( testData1, 0, testData1Size );
-
-    std::cout << "Position = " << testBuffer1->position()
-              << ", Capacity = " << testBuffer1->capacity()
-              << ", Limit = " << testBuffer1->limit() << "\n";
+    for( std::size_t ix = 0; ix < testData1Size; ++ix ){
+        testBuffer1->put( ix, testData1[ix] );
+    }
 
     ByteBuffer& ret = testBuffer1->compact();
 
     CPPUNIT_ASSERT( &ret == testBuffer1 );
-
-    std::cout << "Position = " << testBuffer1->position()
-              << ", Capacity = " << testBuffer1->capacity()
-              << ", Limit = " << testBuffer1->limit() << "\n";
-
     CPPUNIT_ASSERT( testBuffer1->position() == testBuffer1->capacity() );
     CPPUNIT_ASSERT( testBuffer1->limit() == testBuffer1->capacity() );
 



Mime
View raw message