mirror of https://github.com/apache/activemq.git
patch test case to explicitly disable JMX
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@384186 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
d47ce01a85
commit
8d36b4c751
|
@ -22,6 +22,7 @@ import java.net.URISyntaxException;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.Iterator;
|
import java.util.Iterator;
|
||||||
|
|
||||||
|
import org.apache.activemq.broker.BrokerFactory;
|
||||||
import org.apache.activemq.broker.BrokerRegistry;
|
import org.apache.activemq.broker.BrokerRegistry;
|
||||||
import org.apache.activemq.broker.BrokerService;
|
import org.apache.activemq.broker.BrokerService;
|
||||||
import org.apache.activemq.broker.BrokerTestSupport;
|
import org.apache.activemq.broker.BrokerTestSupport;
|
||||||
|
@ -98,9 +99,14 @@ public class NetworkTestSupport extends BrokerTestSupport {
|
||||||
}
|
}
|
||||||
return remotePersistenceAdapter;
|
return remotePersistenceAdapter;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected BrokerService createBroker() throws Exception {
|
||||||
|
return BrokerFactory.createBroker(new URI("broker:()/localhost?persistent=false&useJmx=false"));
|
||||||
|
}
|
||||||
|
|
||||||
protected BrokerService createRemoteBroker(PersistenceAdapter persistenceAdapter) throws Exception {
|
protected BrokerService createRemoteBroker(PersistenceAdapter persistenceAdapter) throws Exception {
|
||||||
BrokerService answer = new BrokerService();
|
BrokerService answer = new BrokerService();
|
||||||
|
answer.setUseJmx(false);
|
||||||
answer.setPersistenceAdapter(persistenceAdapter);
|
answer.setPersistenceAdapter(persistenceAdapter);
|
||||||
return answer;
|
return answer;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue