activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gtu...@apache.org
Subject svn commit: r691604 - /activemq/trunk/activemq-core/src/test/java/org/apache/activemq/command/MessageCompressionTest.java
Date Wed, 03 Sep 2008 13:10:56 GMT
Author: gtully
Date: Wed Sep  3 06:10:56 2008
New Revision: 691604

URL: http://svn.apache.org/viewvc?rev=691604&view=rev
Log:
fix broken unit test after fix for  AMQ-1919

Modified:
    activemq/trunk/activemq-core/src/test/java/org/apache/activemq/command/MessageCompressionTest.java

Modified: activemq/trunk/activemq-core/src/test/java/org/apache/activemq/command/MessageCompressionTest.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/command/MessageCompressionTest.java?rev=691604&r1=691603&r2=691604&view=diff
==============================================================================
--- activemq/trunk/activemq-core/src/test/java/org/apache/activemq/command/MessageCompressionTest.java
(original)
+++ activemq/trunk/activemq-core/src/test/java/org/apache/activemq/command/MessageCompressionTest.java
Wed Sep  3 06:10:56 2008
@@ -86,7 +86,7 @@
 
     private void sendTestMessage(ActiveMQConnectionFactory factory, String message) throws
JMSException {
         ActiveMQConnection connection = (ActiveMQConnection)factory.createConnection();
-        Session session = connection.createSession(false, 0);
+        Session session = connection.createSession(false, Session.AUTO_ACKNOWLEDGE);
         MessageProducer producer = session.createProducer(queue);
         producer.send(session.createTextMessage(message));
         connection.close();
@@ -95,7 +95,7 @@
     private ActiveMQTextMessage receiveTestMessage(ActiveMQConnectionFactory factory) throws
JMSException {
         ActiveMQConnection connection = (ActiveMQConnection)factory.createConnection();
         connection.start();
-        Session session = connection.createSession(false, 0);
+        Session session = connection.createSession(false, Session.AUTO_ACKNOWLEDGE);
         MessageConsumer consumer = session.createConsumer(queue);
         ActiveMQTextMessage rc = (ActiveMQTextMessage)consumer.receive();
         connection.close();



Mime
View raw message