activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject svn commit: r495606 - in /incubator/activemq/activemq-cpp/trunk/activemq-cpp/src: main/activemq/connector/stomp/commands/StompMessage.h test/activemq/connector/stomp/commands/MessageCommandTest.h
Date Fri, 12 Jan 2007 15:30:01 GMT
Author: tabish
Date: Fri Jan 12 07:30:00 2007
New Revision: 495606

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

Modified:
    incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/stomp/commands/StompMessage.h
    incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/test/activemq/connector/stomp/commands/MessageCommandTest.h

Modified: incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/stomp/commands/StompMessage.h
URL: http://svn.apache.org/viewvc/incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/stomp/commands/StompMessage.h?view=diff&rev=495606&r1=495605&r2=495606
==============================================================================
--- incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/stomp/commands/StompMessage.h
(original)
+++ incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/stomp/commands/StompMessage.h
Fri Jan 12 07:30:00 2007
@@ -209,7 +209,7 @@
         virtual std::string getStringProperty( const std::string& name ) const 
             throw( cms::CMSException ){
             testProperty( name );
-            return getPropertyValue( name );
+            return getPropertyValue( name, "" );
         }
         
         virtual void setBooleanProperty( const std::string& name,

Modified: incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/test/activemq/connector/stomp/commands/MessageCommandTest.h
URL: http://svn.apache.org/viewvc/incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/test/activemq/connector/stomp/commands/MessageCommandTest.h?view=diff&rev=495606&r1=495605&r2=495606
==============================================================================
--- incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/test/activemq/connector/stomp/commands/MessageCommandTest.h
(original)
+++ incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/test/activemq/connector/stomp/commands/MessageCommandTest.h
Fri Jan 12 07:30:00 2007
@@ -216,6 +216,13 @@
         void testFailedGetProperties(){
             MessageCommand cmd;
             
+            // Test getting a string property that doesn't exist. 
+            try {
+                std::string str = cmd.getStringProperty( "text" );
+            } catch( cms::CMSException& e){
+                CPPUNIT_ASSERT(false);
+            }
+            
             // Test accessing non-existent property
             try{
                 cmd.getIntProperty("string");



Mime
View raw message