for (ServiceBinding binding : bindings)
{
byFQN.put(binding.getFullyQualifiedName(), binding);
}
ServiceBinding aa = byFQN.get(updated.getFullyQualifiedName());
assertNotNull(aa);
assertEquals(setName + "/updated/serviceName", updated.getServiceName(), aa.getServiceName());
assertEquals(setName + "/updated/bindingName", updated.getBindingName(), aa.getBindingName());
assertEquals(setName + "/updated/description", updated.getDescription(), aa.getDescription());
assertEquals(setName + "/updated/hostName", bindingSet.getDefaultHostName(), aa.getHostName());
assertEquals(setName + "/updated/port", updated.getPort() + bindingSet.getPortOffset(), aa.getPort());
ServiceBinding ab = byFQN.get(AB.getFullyQualifiedName());
assertNotNull(aa);
assertEquals(setName + "/AB/serviceName", AB.getServiceName(), ab.getServiceName());
assertEquals(setName + "/AB/bindingName", AB.getBindingName(), ab.getBindingName());
assertEquals(setName + "/AB/description", AB.getDescription(), ab.getDescription());
assertEquals(setName + "/AB/hostName", bindingSet.getDefaultHostName(), ab.getHostName());
assertEquals(setName + "/AB/port", AB.getPort() + bindingSet.getPortOffset(), ab.getPort());
ServiceBinding anull = byFQN.get(Anull.getFullyQualifiedName());
assertNotNull(anull);
assertEquals(setName + "/Anull/serviceName", Anull.getServiceName(), anull.getServiceName());
assertEquals(setName + "/Anull/bindingName", Anull.getBindingName(), anull.getBindingName());
assertEquals(setName + "/Anull/description", Anull.getDescription(), anull.getDescription());
assertEquals(setName + "/Anull/hostName", bindingSet.getDefaultHostName(), anull.getHostName());
assertEquals(setName + "/Anull/port", Anull.getPort() + bindingSet.getPortOffset(), anull.getPort());
ServiceBinding newOne = byFQN.get(BA.getFullyQualifiedName());
assertNotNull(newOne);
assertEquals(setName + "/BA/serviceName", BA.getServiceName(), newOne.getServiceName());
assertEquals(setName + "/BA/bindingName", BA.getBindingName(), newOne.getBindingName());
assertEquals(setName + "/BA/description", BA.getDescription(), newOne.getDescription());
assertEquals(setName + "/BA/hostName", bindingSet.getDefaultHostName(), newOne.getHostName());
assertEquals(setName + "/BA/port", BA.getPort() + bindingSet.getPortOffset(), newOne.getPort());
}
}