activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nmitt...@apache.org
Subject svn commit: r620292 - /activemq/activemq-cpp/trunk/src/test/activemq/cmsutil/CmsTemplateTest.cpp
Date Sun, 10 Feb 2008 16:39:36 GMT
Author: nmittler
Date: Sun Feb 10 08:39:31 2008
New Revision: 620292

URL: http://svn.apache.org/viewvc?rev=620292&view=rev
Log:
AMQCPP-152 - Adding tests for synchronous receive to CmsTemplate

Modified:
    activemq/activemq-cpp/trunk/src/test/activemq/cmsutil/CmsTemplateTest.cpp

Modified: activemq/activemq-cpp/trunk/src/test/activemq/cmsutil/CmsTemplateTest.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/test/activemq/cmsutil/CmsTemplateTest.cpp?rev=620292&r1=620291&r2=620292&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/src/test/activemq/cmsutil/CmsTemplateTest.cpp (original)
+++ activemq/activemq-cpp/trunk/src/test/activemq/cmsutil/CmsTemplateTest.cpp Sun Feb 10 08:39:31
2008
@@ -442,6 +442,7 @@
         cms::Message* message = cmsTemplate->receiveSelected(&myTopic, selector);

         CPPUNIT_ASSERT( message != NULL );
         CPPUNIT_ASSERT(&myTopic == listener.dest);
+        CPPUNIT_ASSERT_EQUAL(selector, listener.selector);
         delete message;
         
         // Now try a failure.
@@ -481,6 +482,7 @@
         const cms::Queue* q = dynamic_cast<const cms::Queue*>(listener.dest);
         CPPUNIT_ASSERT(q != NULL);
         CPPUNIT_ASSERT_EQUAL((std::string)"bob", q->getQueueName());
+        CPPUNIT_ASSERT_EQUAL(selector, listener.selector);
         delete message;
         
         // Now try a failure.



Mime
View raw message