mirror of
https://github.com/apache/activemq.git
synced 2025-02-18 07:56:20 +00:00
enable frame tracing in few more test cases
This commit is contained in:
parent
cdfb562455
commit
301866d151
@ -662,6 +662,7 @@ public class JMSClientTest extends AmqpTestSupport {
|
|||||||
|
|
||||||
@Test(timeout=30000)
|
@Test(timeout=30000)
|
||||||
public void testExecptionListenerCalledOnBrokerStop() throws Exception {
|
public void testExecptionListenerCalledOnBrokerStop() throws Exception {
|
||||||
|
ActiveMQAdmin.enableJMSFrameTracing();
|
||||||
|
|
||||||
Connection connection = createConnection();
|
Connection connection = createConnection();
|
||||||
Session session = connection.createSession(false, Session.AUTO_ACKNOWLEDGE);
|
Session session = connection.createSession(false, Session.AUTO_ACKNOWLEDGE);
|
||||||
@ -694,8 +695,9 @@ public class JMSClientTest extends AmqpTestSupport {
|
|||||||
assertTrue("No exception listener event fired.", called.await(15, TimeUnit.SECONDS));
|
assertTrue("No exception listener event fired.", called.await(15, TimeUnit.SECONDS));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test(timeout=40000)
|
@Test(timeout=30000)
|
||||||
public void testSessionTransactedCommit() throws JMSException, InterruptedException {
|
public void testSessionTransactedCommit() throws JMSException, InterruptedException {
|
||||||
|
ActiveMQAdmin.enableJMSFrameTracing();
|
||||||
|
|
||||||
Connection connection = createConnection();
|
Connection connection = createConnection();
|
||||||
Session session = connection.createSession(true, Session.AUTO_ACKNOWLEDGE);
|
Session session = connection.createSession(true, Session.AUTO_ACKNOWLEDGE);
|
||||||
@ -742,7 +744,7 @@ public class JMSClientTest extends AmqpTestSupport {
|
|||||||
|
|
||||||
private Connection createConnection(String clientId, boolean syncPublish) throws JMSException {
|
private Connection createConnection(String clientId, boolean syncPublish) throws JMSException {
|
||||||
|
|
||||||
final ConnectionFactoryImpl factory = new ConnectionFactoryImpl("localhost", port, "admin", "password");
|
final ConnectionFactoryImpl factory = new ConnectionFactoryImpl("localhost", nioPort, "admin", "password");
|
||||||
|
|
||||||
factory.setSyncPublish(syncPublish);
|
factory.setSyncPublish(syncPublish);
|
||||||
factory.setTopicPrefix("topic://");
|
factory.setTopicPrefix("topic://");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user