mirror of https://github.com/apache/activemq.git
Restore test disabled by mistake
This commit is contained in:
parent
12481abb98
commit
90afa24549
|
@ -108,36 +108,36 @@ public class JMSClientTest extends JMSClientTestSupport {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test // (timeout=30000)
|
@Test(timeout=30000)
|
||||||
public void testAnonymousProducerConsume() throws Exception {
|
public void testAnonymousProducerConsume() throws Exception {
|
||||||
ActiveMQAdmin.enableJMSFrameTracing();
|
ActiveMQAdmin.enableJMSFrameTracing();
|
||||||
|
|
||||||
connection = createConnection();
|
connection = createConnection();
|
||||||
{
|
{
|
||||||
// Session session = connection.createSession(false, Session.AUTO_ACKNOWLEDGE);
|
Session session = connection.createSession(false, Session.AUTO_ACKNOWLEDGE);
|
||||||
// Queue queue1 = session.createQueue(getDestinationName() + "1");
|
Queue queue1 = session.createQueue(getDestinationName() + "1");
|
||||||
// Queue queue2 = session.createQueue(getDestinationName() + "2");
|
Queue queue2 = session.createQueue(getDestinationName() + "2");
|
||||||
// MessageProducer p = session.createProducer(null);
|
MessageProducer p = session.createProducer(null);
|
||||||
//
|
|
||||||
// TextMessage message = session.createTextMessage();
|
TextMessage message = session.createTextMessage();
|
||||||
// message.setText("hello");
|
message.setText("hello");
|
||||||
// p.send(queue1, message);
|
p.send(queue1, message);
|
||||||
// p.send(queue2, message);
|
p.send(queue2, message);
|
||||||
//
|
|
||||||
// {
|
{
|
||||||
// MessageConsumer consumer = session.createConsumer(queue1);
|
MessageConsumer consumer = session.createConsumer(queue1);
|
||||||
// Message msg = consumer.receive(TestConfig.TIMEOUT);
|
Message msg = consumer.receive(TestConfig.TIMEOUT);
|
||||||
// assertNotNull(msg);
|
assertNotNull(msg);
|
||||||
// assertTrue(msg instanceof TextMessage);
|
assertTrue(msg instanceof TextMessage);
|
||||||
// consumer.close();
|
consumer.close();
|
||||||
// }
|
}
|
||||||
// {
|
{
|
||||||
// MessageConsumer consumer = session.createConsumer(queue2);
|
MessageConsumer consumer = session.createConsumer(queue2);
|
||||||
// Message msg = consumer.receive(TestConfig.TIMEOUT);
|
Message msg = consumer.receive(TestConfig.TIMEOUT);
|
||||||
// assertNotNull(msg);
|
assertNotNull(msg);
|
||||||
// assertTrue(msg instanceof TextMessage);
|
assertTrue(msg instanceof TextMessage);
|
||||||
// consumer.close();
|
consumer.close();
|
||||||
// }
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue