Allow a test to turn of JMX if desired.

This commit is contained in:
Timothy Bish 2015-05-15 11:03:35 -04:00
parent 6f1f06fb16
commit 3e599a595f
1 changed files with 5 additions and 1 deletions

View File

@ -104,7 +104,7 @@ public class AmqpTestSupport {
}
brokerService.setSchedulerSupport(false);
brokerService.setAdvisorySupport(false);
brokerService.setUseJmx(true);
brokerService.setUseJmx(isUseJmx());
brokerService.getManagementContext().setCreateConnector(false);
performAdditionalConfiguration(brokerService);
@ -182,6 +182,10 @@ public class AmqpTestSupport {
return false;
}
protected boolean isUseJmx() {
return true;
}
protected int getstoreOpenWireVersion() {
return OpenWireFormat.DEFAULT_VERSION;
}