activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject git commit: Disable JMX on the test brokers as it's not needed in these tests, prevents some failures and speeds things up a little.
Date Wed, 30 Jul 2014 13:40:24 GMT
Repository: activemq
Updated Branches:
  refs/heads/trunk 829a186f2 -> 1ee5108be


Disable JMX on the test brokers as it's not needed in these tests,
prevents some failures and speeds things up a little.

Project: http://git-wip-us.apache.org/repos/asf/activemq/repo
Commit: http://git-wip-us.apache.org/repos/asf/activemq/commit/1ee5108b
Tree: http://git-wip-us.apache.org/repos/asf/activemq/tree/1ee5108b
Diff: http://git-wip-us.apache.org/repos/asf/activemq/diff/1ee5108b

Branch: refs/heads/trunk
Commit: 1ee5108be6e3ec0b84af72f413ce54c9edfeea45
Parents: 829a186
Author: Timothy Bish <tabish121@gmail.com>
Authored: Wed Jul 30 09:40:09 2014 -0400
Committer: Timothy Bish <tabish121@gmail.com>
Committed: Wed Jul 30 09:40:09 2014 -0400

----------------------------------------------------------------------
 .../activemq/jms/pool/PooledConnectionFactoryTest.java | 13 +++++++++----
 1 file changed, 9 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/activemq/blob/1ee5108b/activemq-jms-pool/src/test/java/org/apache/activemq/jms/pool/PooledConnectionFactoryTest.java
----------------------------------------------------------------------
diff --git a/activemq-jms-pool/src/test/java/org/apache/activemq/jms/pool/PooledConnectionFactoryTest.java
b/activemq-jms-pool/src/test/java/org/apache/activemq/jms/pool/PooledConnectionFactoryTest.java
index 289030f..511d7cb 100644
--- a/activemq-jms-pool/src/test/java/org/apache/activemq/jms/pool/PooledConnectionFactoryTest.java
+++ b/activemq-jms-pool/src/test/java/org/apache/activemq/jms/pool/PooledConnectionFactoryTest.java
@@ -67,7 +67,8 @@ public class PooledConnectionFactoryTest {
     @Test
     public void testClearAllConnections() throws Exception {
 
-        ActiveMQConnectionFactory amq = new ActiveMQConnectionFactory("vm://broker1?marshal=false&broker.persistent=false");
+        ActiveMQConnectionFactory amq = new ActiveMQConnectionFactory(
+            "vm://broker1?marshal=false&broker.persistent=false&broker.useJmx=false");
         PooledConnectionFactory cf = new PooledConnectionFactory();
         cf.setConnectionFactory(amq);
         cf.setMaxConnections(3);
@@ -98,7 +99,8 @@ public class PooledConnectionFactoryTest {
     @Test
     public void testMaxConnectionsAreCreated() throws Exception {
 
-        ActiveMQConnectionFactory amq = new ActiveMQConnectionFactory("vm://broker1?marshal=false&broker.persistent=false");
+        ActiveMQConnectionFactory amq = new ActiveMQConnectionFactory(
+            "vm://broker1?marshal=false&broker.persistent=false&broker.useJmx=false");
         PooledConnectionFactory cf = new PooledConnectionFactory();
         cf.setConnectionFactory(amq);
         cf.setMaxConnections(3);
@@ -117,7 +119,8 @@ public class PooledConnectionFactoryTest {
     @Test
     public void testConnectionsAreRotated() throws Exception {
 
-        ActiveMQConnectionFactory amq = new ActiveMQConnectionFactory("vm://broker1?marshal=false&broker.persistent=false");
+        ActiveMQConnectionFactory amq = new ActiveMQConnectionFactory(
+            "vm://broker1?marshal=false&broker.persistent=false&broker.useJmx=false");
         PooledConnectionFactory cf = new PooledConnectionFactory();
         cf.setConnectionFactory(amq);
         cf.setMaxConnections(10);
@@ -158,7 +161,8 @@ public class PooledConnectionFactoryTest {
     @Test
     public void testConnectionsArePooledAsyncCreate() throws Exception {
 
-        final ActiveMQConnectionFactory amq = new ActiveMQConnectionFactory("vm://broker1?marshal=false&broker.persistent=false");
+        final ActiveMQConnectionFactory amq = new ActiveMQConnectionFactory(
+            "vm://broker1?marshal=false&broker.persistent=false&broker.useJmx=false");
         final PooledConnectionFactory cf = new PooledConnectionFactory();
         cf.setConnectionFactory(amq);
         cf.setMaxConnections(1);
@@ -214,6 +218,7 @@ public class PooledConnectionFactoryTest {
 
         BrokerService brokerService = new BrokerService();
         brokerService.setPersistent(false);
+        brokerService.setUseJmx(false);
         brokerService.addConnector("tcp://localhost:0");
         brokerService.start();
         brokerService.waitUntilStarted();


Mime
View raw message