activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nmitt...@apache.org
Subject svn commit: r516899 - /activemq/activemq-cpp/trunk/activemq-cpp/src/test-integration/integration/connector/stomp/DurableTest.cpp
Date Sun, 11 Mar 2007 13:26:10 GMT
Author: nmittler
Date: Sun Mar 11 06:26:08 2007
New Revision: 516899

URL: http://svn.apache.org/viewvc?view=rev&rev=516899
Log:
cleaning up integration tests

Modified:
    activemq/activemq-cpp/trunk/activemq-cpp/src/test-integration/integration/connector/stomp/DurableTest.cpp

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/test-integration/integration/connector/stomp/DurableTest.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/test-integration/integration/connector/stomp/DurableTest.cpp?view=diff&rev=516899&r1=516898&r2=516899
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/test-integration/integration/connector/stomp/DurableTest.cpp
(original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/test-integration/integration/connector/stomp/DurableTest.cpp
Sun Mar 11 06:26:08 2007
@@ -100,7 +100,7 @@
 
         // Create CMS Object for Comms
         cms::Session* session = testSupport.getSession();
-        cms::Topic* topic = session->createTopic("mytopic");
+        cms::Topic* topic = session->createTopic(Guid::createGUIDString());
         cms::MessageConsumer* consumer = 
             session->createDurableConsumer( topic, subName, "" );            
         consumer->setMessageListener( &testSupport );
@@ -121,7 +121,7 @@
             printf("received: %d\n", numReceived );
         }
         
-        CPPUNIT_ASSERT( numReceived == sent );
+        CPPUNIT_ASSERT_EQUAL( sent, numReceived );
 
         // Nuke the consumer
         delete consumer;
@@ -142,7 +142,7 @@
         if( IntegrationCommon::debug ) {
             printf("received: %d\n", numReceived );
         }
-        CPPUNIT_ASSERT( numReceived == sent );
+        CPPUNIT_ASSERT_EQUAL( sent, numReceived );
 
         if( IntegrationCommon::debug ) {
             printf("Shutting Down\n" );



Mime
View raw message