fix broken unit test after fix for AMQ-1919

git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@691604 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Gary Tully 2008-09-03 13:10:56 +00:00
parent 02c6892176
commit 1e73d70d83
1 changed files with 2 additions and 2 deletions

View File

@ -86,7 +86,7 @@ public class MessageCompressionTest extends TestCase {
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 @@ public class MessageCompressionTest extends TestCase {
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();