NO-JIRA: Fixing QueueCommandTest::autoDeleteAddress

This commit is contained in:
Clebert Suconic 2016-12-16 18:07:06 -05:00
parent c552cc51c7
commit df1ec5bc49
1 changed files with 1 additions and 0 deletions

View File

@ -2525,6 +2525,7 @@ public class ActiveMQServerImpl implements ActiveMQServer {
RoutingType rt = (routingType == null ? ActiveMQDefaultConfiguration.getDefaultRoutingType() : routingType);
if (info == null) {
final AddressInfo addressInfo = new AddressInfo(addressName, rt);
addressInfo.setAutoCreated(true);
createAddressInfo(addressInfo);
} else if (!info.getRoutingTypes().contains(routingType)) {
Set<RoutingType> routingTypes = new HashSet<>();