You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by jg...@apache.org on 2020/05/14 12:38:44 UTC
[tomee] branch tomee-7.1.x updated: Adding a test for the
management context
This is an automated email from the ASF dual-hosted git repository.
jgallimore pushed a commit to branch tomee-7.1.x
in repository https://gitbox.apache.org/repos/asf/tomee.git
The following commit(s) were added to refs/heads/tomee-7.1.x by this push:
new ac8889f Adding a test for the management context
ac8889f is described below
commit ac8889fd8d94fdb22c7dd0197b623b215d3edef9
Author: Jonathan Gallimore <jo...@jrg.me.uk>
AuthorDate: Thu May 14 11:35:03 2020 +0100
Adding a test for the management context
---
.../openejb/resource/activemq/ActiveMQ5FactoryTest.java | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
diff --git a/container/openejb-core/src/test/java/org/apache/openejb/resource/activemq/ActiveMQ5FactoryTest.java b/container/openejb-core/src/test/java/org/apache/openejb/resource/activemq/ActiveMQ5FactoryTest.java
index 109dc35..8912088 100644
--- a/container/openejb-core/src/test/java/org/apache/openejb/resource/activemq/ActiveMQ5FactoryTest.java
+++ b/container/openejb-core/src/test/java/org/apache/openejb/resource/activemq/ActiveMQ5FactoryTest.java
@@ -71,4 +71,20 @@ public class ActiveMQ5FactoryTest {
assertEquals("duplex is " + b, b, nc.isDuplex());
}
}
+
+ @Test
+ public void checkManagementContext() throws Exception {
+ final URI brokerURI = new URI("amq5factory:broker:(tcp://localhost:" + getNextAvailablePort() + ")?" +
+ "useJmx=true");
+
+ BrokerService bs = null;
+ try {
+ bs = new ActiveMQ5Factory().createBroker(brokerURI);
+ assertFalse(bs.getManagementContext().isCreateConnector());
+ } finally {
+ if (bs != null) {
+ bs.stop();
+ }
+ }
+ }
}