activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject svn commit: r746023 - in /activemq/activemq-cpp/trunk/src/test: activemq/commands/ActiveMQBytesMessageTest.cpp testRegistry.cpp
Date Thu, 19 Feb 2009 22:10:04 GMT
Author: tabish
Date: Thu Feb 19 22:10:04 2009
New Revision: 746023

URL: http://svn.apache.org/viewvc?rev=746023&view=rev
Log:
Added some tests

Modified:
    activemq/activemq-cpp/trunk/src/test/activemq/commands/ActiveMQBytesMessageTest.cpp
    activemq/activemq-cpp/trunk/src/test/testRegistry.cpp

Modified: activemq/activemq-cpp/trunk/src/test/activemq/commands/ActiveMQBytesMessageTest.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/test/activemq/commands/ActiveMQBytesMessageTest.cpp?rev=746023&r1=746022&r2=746023&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/src/test/activemq/commands/ActiveMQBytesMessageTest.cpp (original)
+++ activemq/activemq-cpp/trunk/src/test/activemq/commands/ActiveMQBytesMessageTest.cpp Thu
Feb 19 22:10:04 2009
@@ -51,24 +51,24 @@
     myMessage.writeLong( 0xFFFAAA999LL );
     myMessage.writeString( "This is a test String" );
 
-//    CPPUNIT_ASSERT( myMessage.getBodyLength() != 0 );
-//
-//    // Get ready to read
-//    myMessage.reset();
-//
-//    CPPUNIT_ASSERT( myMessage.readBoolean() == false );
-//    CPPUNIT_ASSERT( myMessage.readByte() == 127 );
-//    CPPUNIT_ASSERT( myMessage.readShort() == 32767 );
-//    CPPUNIT_ASSERT( myMessage.readUnsignedShort() == 65535 );
-//    CPPUNIT_ASSERT( myMessage.readDouble() == 0.5622154 );
-//    CPPUNIT_ASSERT( myMessage.readUTF() == "This is a UTF String" );
-//    CPPUNIT_ASSERT( myMessage.readDouble() == 1.012 );
-//    CPPUNIT_ASSERT( myMessage.readFloat() == 10.000005f );
-//    CPPUNIT_ASSERT( myMessage.readInt() == 15645646 );
-//    CPPUNIT_ASSERT( myMessage.readLong() == 0xFFFAAA999ULL );
-//    CPPUNIT_ASSERT( myMessage.readString() == "This is a test String" );
-//
-//    myMessage.clearBody();
-//
-//    CPPUNIT_ASSERT( myMessage.getBodyLength() == 0 );
+    CPPUNIT_ASSERT( myMessage.getBodyLength() != 0 );
+
+    // Get ready to read
+    myMessage.reset();
+
+    CPPUNIT_ASSERT( myMessage.readBoolean() == false );
+    CPPUNIT_ASSERT( myMessage.readByte() == 127 );
+    CPPUNIT_ASSERT( myMessage.readShort() == 32767 );
+    CPPUNIT_ASSERT( myMessage.readUnsignedShort() == 65535 );
+    CPPUNIT_ASSERT( myMessage.readDouble() == 0.5622154 );
+    CPPUNIT_ASSERT( myMessage.readUTF() == "This is a UTF String" );
+    CPPUNIT_ASSERT( myMessage.readDouble() == 1.012 );
+    CPPUNIT_ASSERT( myMessage.readFloat() == 10.000005f );
+    CPPUNIT_ASSERT( myMessage.readInt() == 15645646 );
+    CPPUNIT_ASSERT( myMessage.readLong() == 0xFFFAAA999ULL );
+    CPPUNIT_ASSERT( myMessage.readString() == "This is a test String" );
+
+    myMessage.clearBody();
+
+    CPPUNIT_ASSERT( myMessage.getBodyLength() == 0 );
 }

Modified: activemq/activemq-cpp/trunk/src/test/testRegistry.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/test/testRegistry.cpp?rev=746023&r1=746022&r2=746023&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/src/test/testRegistry.cpp (original)
+++ activemq/activemq-cpp/trunk/src/test/testRegistry.cpp Thu Feb 19 22:10:04 2009
@@ -38,8 +38,8 @@
 //CPPUNIT_TEST_SUITE_REGISTRATION( activemq::commands::ActiveMQMapMessageTest );
 //#include <activemq/commands/ActiveMQDestinationTest2.h>
 //CPPUNIT_TEST_SUITE_REGISTRATION( activemq::commands::ActiveMQDestinationTest );
-//#include <activemq/commands/ActiveMQBytesMessageTest.h>
-//CPPUNIT_TEST_SUITE_REGISTRATION( activemq::commands::ActiveMQBytesMessageTest );
+#include <activemq/commands/ActiveMQBytesMessageTest.h>
+CPPUNIT_TEST_SUITE_REGISTRATION( activemq::commands::ActiveMQBytesMessageTest );
 //
 //#include <activemq/wireformat/openwire/marshal/BaseDataStreamMarshallerTest.h>
 //CPPUNIT_TEST_SUITE_REGISTRATION( activemq::wireformat::openwire::marshal::BaseDataStreamMarshallerTest
);



Mime
View raw message