This test does not need a management context, disable JMX

This commit is contained in:
Timothy Bish 2014-08-18 18:06:42 -04:00
parent 9b017fdb39
commit aae7aeaf39
1 changed files with 17 additions and 8 deletions

View File

@ -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;
}