activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject activemq git commit: Test does not need JMX so disable to avoid clashing with brokers left running by other tests.
Date Wed, 03 Jun 2015 17:38:18 GMT
Repository: activemq
Updated Branches:
  refs/heads/master 848adc4b5 -> 73d2810c6


Test does not need JMX so disable to avoid clashing with brokers left
running by other tests.

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

Branch: refs/heads/master
Commit: 73d2810c602e361cf447ff3e607911023c3e2201
Parents: 848adc4
Author: Timothy Bish <tabish121@gmail.com>
Authored: Wed Jun 3 13:38:01 2015 -0400
Committer: Timothy Bish <tabish121@gmail.com>
Committed: Wed Jun 3 13:38:01 2015 -0400

----------------------------------------------------------------------
 .../activemq/transport/tcp/TcpTransportBindTest.java     | 11 +++++++++++
 1 file changed, 11 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/activemq/blob/73d2810c/activemq-unit-tests/src/test/java/org/apache/activemq/transport/tcp/TcpTransportBindTest.java
----------------------------------------------------------------------
diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/transport/tcp/TcpTransportBindTest.java
b/activemq-unit-tests/src/test/java/org/apache/activemq/transport/tcp/TcpTransportBindTest.java
index 61c20ae..92f232c 100644
--- a/activemq-unit-tests/src/test/java/org/apache/activemq/transport/tcp/TcpTransportBindTest.java
+++ b/activemq-unit-tests/src/test/java/org/apache/activemq/transport/tcp/TcpTransportBindTest.java
@@ -25,6 +25,7 @@ import javax.jms.Session;
 
 import org.apache.activemq.ActiveMQConnectionFactory;
 import org.apache.activemq.EmbeddedBrokerTestSupport;
+import org.apache.activemq.broker.BrokerService;
 
 public class TcpTransportBindTest extends EmbeddedBrokerTestSupport {
     String addr = "tcp://localhost:0";
@@ -41,6 +42,16 @@ public class TcpTransportBindTest extends EmbeddedBrokerTestSupport {
         addr = broker.getTransportConnectors().get(0).getPublishableConnectString();
     }
 
+    @Override
+    protected BrokerService createBroker() throws Exception {
+        BrokerService answer = new BrokerService();
+        answer.setBrokerName("TcpTransportBindTest");
+        answer.setPersistent(false);
+        answer.setUseJmx(false);
+        answer.addConnector(bindAddress);
+        return answer;
+    }
+
     public void testConnect() throws Exception {
         Connection connection = new ActiveMQConnectionFactory(addr).createConnection();
         connection.start();


Mime
View raw message