activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject svn commit: r503808 - /activemq/activemq-cpp/trunk/activemq-cpp/src/test/activemq/connector/openwire/commands/ActiveMQTextMessageTest.cpp
Date Mon, 05 Feb 2007 18:44:06 GMT
Author: tabish
Date: Mon Feb  5 10:44:05 2007
New Revision: 503808

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

Modified:
    activemq/activemq-cpp/trunk/activemq-cpp/src/test/activemq/connector/openwire/commands/ActiveMQTextMessageTest.cpp

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/test/activemq/connector/openwire/commands/ActiveMQTextMessageTest.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/test/activemq/connector/openwire/commands/ActiveMQTextMessageTest.cpp?view=diff&rev=503808&r1=503807&r2=503808
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/test/activemq/connector/openwire/commands/ActiveMQTextMessageTest.cpp
(original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/test/activemq/connector/openwire/commands/ActiveMQTextMessageTest.cpp
Mon Feb  5 10:44:05 2007
@@ -32,5 +32,18 @@
 ////////////////////////////////////////////////////////////////////////////////
 void ActiveMQTextMessageTest::test()
 {
-    //ActiveMQTextMessage myMessage;
+    ActiveMQTextMessage myMessage;
+
+    CPPUNIT_ASSERT( myMessage.getDataStructureType() == ActiveMQTextMessage::ID_ACTIVEMQTEXTMESSAGE
);
+    
+    const char* testText = "This is some test Text";
+    
+    myMessage.setText( testText );
+    
+    CPPUNIT_ASSERT( myMessage.getText() == testText );
+
+    //cms::TextMessage* clonedMessage = myMessage.clone();
+    //CPPUNIT_ASSERT( clonedMessage != NULL );
+    //CPPUNIT_ASSERT( clonedMessage->getText() == testText );
+    //delete clonedMessage;
 }



Mime
View raw message