Repository: activemq Updated Branches: refs/heads/trunk 9b017fdb3 -> aae7aeaf3
This test does not need a management context, disable JMX Project: http://git-wip-us.apache.org/repos/asf/activemq/repo Commit: http://git-wip-us.apache.org/repos/asf/activemq/commit/aae7aeaf Tree: http://git-wip-us.apache.org/repos/asf/activemq/tree/aae7aeaf Diff: http://git-wip-us.apache.org/repos/asf/activemq/diff/aae7aeaf Branch: refs/heads/trunk Commit: aae7aeaf39e028afb5097a25a2caffbfd98b1b99 Parents: 9b017fd Author: Timothy Bish <[email protected]> Authored: Mon Aug 18 18:06:42 2014 -0400 Committer: Timothy Bish <[email protected]> Committed: Mon Aug 18 18:06:42 2014 -0400 ---------------------------------------------------------------------- .../org/apache/activemq/bugs/AMQ4368Test.java | 25 +++++++++++++------- 1 file changed, 17 insertions(+), 8 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/activemq/blob/aae7aeaf/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ4368Test.java ---------------------------------------------------------------------- diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ4368Test.java b/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ4368Test.java index 09e5607..4978a9f 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ4368Test.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ4368Test.java @@ -16,6 +16,21 @@ */ package org.apache.activemq.bugs; +import static org.junit.Assert.assertTrue; + +import java.util.concurrent.CountDownLatch; +import java.util.concurrent.TimeUnit; +import java.util.concurrent.atomic.AtomicBoolean; +import java.util.concurrent.atomic.AtomicLong; + +import javax.jms.Connection; +import javax.jms.Destination; +import javax.jms.JMSException; +import javax.jms.Message; +import javax.jms.MessageConsumer; +import javax.jms.MessageProducer; +import javax.jms.Session; + import org.apache.activemq.ActiveMQConnectionFactory; import org.apache.activemq.broker.BrokerService; import org.apache.activemq.broker.region.policy.PolicyEntry; @@ -28,14 +43,6 @@ import org.junit.Test; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -import javax.jms.*; -import java.util.concurrent.CountDownLatch; -import java.util.concurrent.TimeUnit; -import java.util.concurrent.atomic.AtomicBoolean; -import java.util.concurrent.atomic.AtomicLong; - -import static org.junit.Assert.assertTrue; - public class AMQ4368Test { private static final Logger LOG = LoggerFactory.getLogger(AMQ4368Test.class); @@ -74,6 +81,8 @@ public class AMQ4368Test { kahadb.deleteAllMessages(); broker.setPersistenceAdapter(kahadb); broker.getSystemUsage().getMemoryUsage().setLimit(1024*1024*100); + broker.setUseJmx(false); + return broker; }
