activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject svn commit: r500915 - in /incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/test/activemq/connector/openwire/commands: ActiveMQDestinationTest2.cpp ActiveMQDestinationTest2.h
Date Mon, 29 Jan 2007 00:59:25 GMT
Author: tabish
Date: Sun Jan 28 16:59:24 2007
New Revision: 500915

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

Modified:
    incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/test/activemq/connector/openwire/commands/ActiveMQDestinationTest2.cpp
    incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/test/activemq/connector/openwire/commands/ActiveMQDestinationTest2.h

Modified: incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/test/activemq/connector/openwire/commands/ActiveMQDestinationTest2.cpp
URL: http://svn.apache.org/viewvc/incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/test/activemq/connector/openwire/commands/ActiveMQDestinationTest2.cpp?view=diff&rev=500915&r1=500914&r2=500915
==============================================================================
--- incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/test/activemq/connector/openwire/commands/ActiveMQDestinationTest2.cpp
(original)
+++ incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/test/activemq/connector/openwire/commands/ActiveMQDestinationTest2.cpp
Sun Jan 28 16:59:24 2007
@@ -78,3 +78,19 @@
     CPPUNIT_ASSERT( clientId == ActiveMQDestination::getClientId( &tmpDest ) );
 
 }
+
+////////////////////////////////////////////////////////////////////////////////
+void ActiveMQDestinationTest::testOptions(){
+
+    MyDestination dest;
+
+    dest.setPhysicalName( "test?option1=test1&option2=test2" );
+
+    const util::Properties& properties = dest.getOptions();
+    
+    CPPUNIT_ASSERT( properties.hasProperty( "option1" ) == true );
+    CPPUNIT_ASSERT( properties.hasProperty( "option2" ) == true );
+
+    CPPUNIT_ASSERT( std::string( properties.getProperty( "option1" ) ) == "test1" );
+    CPPUNIT_ASSERT( std::string( properties.getProperty( "option2" ) ) == "test2" );
+}

Modified: incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/test/activemq/connector/openwire/commands/ActiveMQDestinationTest2.h
URL: http://svn.apache.org/viewvc/incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/test/activemq/connector/openwire/commands/ActiveMQDestinationTest2.h?view=diff&rev=500915&r1=500914&r2=500915
==============================================================================
--- incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/test/activemq/connector/openwire/commands/ActiveMQDestinationTest2.h
(original)
+++ incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/test/activemq/connector/openwire/commands/ActiveMQDestinationTest2.h
Sun Jan 28 16:59:24 2007
@@ -32,6 +32,7 @@
         
         CPPUNIT_TEST_SUITE( ActiveMQDestinationTest );
         CPPUNIT_TEST( test );
+        CPPUNIT_TEST( testOptions );
         CPPUNIT_TEST_SUITE_END();
 
         class MyDestination : public ActiveMQDestination {    
@@ -85,6 +86,7 @@
     	virtual ~ActiveMQDestinationTest() {}
         
         virtual void test();
+        virtual void testOptions();
 
     };
 



Mime
View raw message