mirror of https://github.com/apache/activemq.git
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:
parent
02c6892176
commit
1e73d70d83
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue