[no jira] remove 1099 port dep for ci test failure RemoteJMXBrokerTest

This commit is contained in:
gtully 2017-01-13 11:44:38 +00:00
parent 511b9b642a
commit 8f960ea356
1 changed files with 2 additions and 0 deletions

View File

@ -34,6 +34,7 @@ import org.apache.activemq.broker.BrokerService;
import org.apache.activemq.broker.jmx.DestinationViewMBean;
import org.apache.activemq.broker.jmx.ManagementContext;
import org.apache.activemq.command.ActiveMQQueue;
import org.apache.activemq.util.TestUtils;
import org.apache.activemq.web.config.SystemPropertiesConfiguration;
import org.junit.After;
import org.junit.Before;
@ -56,6 +57,7 @@ public class RemoteJMXBrokerTest {
@Before
public void startUp() throws Exception {
brokerService = BrokerFactory.createBroker("broker:()/remoteBroker?useJmx=true");
brokerService.getManagementContext().setConnectorPort(TestUtils.findOpenPort());
brokerService.start();
brokerService.waitUntilStarted();