activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject svn commit: r601586 - in /activemq/activemq-cpp/decaf/trunk/src: main/decaf/nio/CharBuffer.cpp test/decaf/internal/nio/CharArrayBufferTest.cpp
Date Thu, 06 Dec 2007 00:20:00 GMT
Author: tabish
Date: Wed Dec  5 16:19:58 2007
New Revision: 601586

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

Working on implementing the NIO package

Modified:
    activemq/activemq-cpp/decaf/trunk/src/main/decaf/nio/CharBuffer.cpp
    activemq/activemq-cpp/decaf/trunk/src/test/decaf/internal/nio/CharArrayBufferTest.cpp

Modified: activemq/activemq-cpp/decaf/trunk/src/main/decaf/nio/CharBuffer.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/decaf/trunk/src/main/decaf/nio/CharBuffer.cpp?rev=601586&r1=601585&r2=601586&view=diff
==============================================================================
--- activemq/activemq-cpp/decaf/trunk/src/main/decaf/nio/CharBuffer.cpp (original)
+++ activemq/activemq-cpp/decaf/trunk/src/main/decaf/nio/CharBuffer.cpp Wed Dec  5 16:19:58
2007
@@ -342,10 +342,8 @@
     throw( BufferOverflowException, ReadOnlyBufferException ) {
 
     try{
-        std::cout << "\n put - string is size = " << src.length();
 
         if( !src.empty() ) {
-            std::cout << "\n Putting string = " << src << std::endl;
             this->put( src.c_str(), 0, src.size() );
         }
 

Modified: activemq/activemq-cpp/decaf/trunk/src/test/decaf/internal/nio/CharArrayBufferTest.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/decaf/trunk/src/test/decaf/internal/nio/CharArrayBufferTest.cpp?rev=601586&r1=601585&r2=601586&view=diff
==============================================================================
--- activemq/activemq-cpp/decaf/trunk/src/test/decaf/internal/nio/CharArrayBufferTest.cpp
(original)
+++ activemq/activemq-cpp/decaf/trunk/src/test/decaf/internal/nio/CharArrayBufferTest.cpp
Wed Dec  5 16:19:58 2007
@@ -665,13 +665,11 @@
 
     testBuffer1->clear();
     for( std::size_t i = 0; i < testBuffer1->capacity(); i++ ) {
-        cout << "\n i = " << i << ", pos = " << testBuffer1->position();
         CPPUNIT_ASSERT( testBuffer1->position() == i );
-        string testString = Integer::valueOf( i ).toString();
-        std::cout << "\n Size of string now = " << testString.size();
+        string testString = " ";
+        testString[0] = (char)i;
         CharBuffer& ret = testBuffer1->put( testString );
-        std::cout << "\n " << testBuffer1->get(i) <<  " == " <<
(char)i;
-        CPPUNIT_ASSERT( testBuffer1->get(i) == (char)i );
+        CPPUNIT_ASSERT( (char)testBuffer1->get(i) == (char)i );
         CPPUNIT_ASSERT( &ret == testBuffer1 );
     }
 



Mime
View raw message