fix regression - ensure connector created for remote jmx assertion

This commit is contained in:
gtully 2017-12-14 13:20:36 +00:00
parent 36a2871301
commit dd6dcc188c
1 changed files with 1 additions and 0 deletions

View File

@ -58,6 +58,7 @@ public class RemoteJMXBrokerTest {
public void startUp() throws Exception {
brokerService = BrokerFactory.createBroker("broker:()/remoteBroker?useJmx=true");
brokerService.getManagementContext().setConnectorPort(TestUtils.findOpenPort());
brokerService.getManagementContext().setCreateConnector(true);
brokerService.start();
brokerService.waitUntilStarted();