activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject svn commit: r761071 - /activemq/activemq-cpp/trunk/activemq-cpp/src/test-integration/activemq/test/TransactionTest.cpp
Date Wed, 01 Apr 2009 21:41:36 GMT
Author: tabish
Date: Wed Apr  1 21:41:36 2009
New Revision: 761071

URL: http://svn.apache.org/viewvc?rev=761071&view=rev
Log:
Add in a missing commit call.

Modified:
    activemq/activemq-cpp/trunk/activemq-cpp/src/test-integration/activemq/test/TransactionTest.cpp

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/test-integration/activemq/test/TransactionTest.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/test-integration/activemq/test/TransactionTest.cpp?rev=761071&r1=761070&r2=761071&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/test-integration/activemq/test/TransactionTest.cpp
(original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/test-integration/activemq/test/TransactionTest.cpp
Wed Apr  1 21:41:36 2009
@@ -150,6 +150,9 @@
         // validates that the rollbacked was not consumed
         cmsProvider->getSession()->commit();
 
+        CPPUNIT_ASSERT( inbound1.get() != NULL );
+        CPPUNIT_ASSERT( inbound2.get() != NULL );
+
         CPPUNIT_ASSERT( outbound1->getText() == inbound1->getText() );
         CPPUNIT_ASSERT( outbound2->getText() == inbound2->getText() );
     }
@@ -187,6 +190,8 @@
                 dynamic_cast<TextMessage*>( consumer->receive( 4000 ) ) );
             CPPUNIT_ASSERT( outbound1->getText() == inbound1->getText() );
         }
+
+        cmsProvider->getSession()->commit();
     }
     AMQ_CATCH_RETHROW( ActiveMQException )
     AMQ_CATCHALL_THROW( ActiveMQException )



Mime
View raw message