@Test public void testSetRoleInstance() { ConcurrentHashMap<String, String> map = new ConcurrentHashMap<String, String>(); CloudContext context = new CloudContext(map); final String expected = "mock-instance"; context.setRoleInstance(expected); assertEquals(expected, context.getRoleInstance()); assertEquals(1, map.size()); assertEquals(expected, map.get(ContextTagKeys.getKeys().getCloudRoleInstance())); }
public void setRoleInstance(String roleInstance) { MapUtil.setStringValueOrRemove(tags, ContextTagKeys.getKeys().getCloudRoleInstance(), roleInstance); }
CloudContext { public void setRoleInstance(String roleInstance) { MapUtil.setStringValueOrRemove(tags, ContextTagKeys.getKeys().getCloudRoleInstance(), roleInstance); } }
CloudContext { public void setRoleInstance(String roleInstance) { MapUtil.setStringValueOrRemove(tags, ContextTagKeys.getKeys().getCloudRoleInstance(), roleInstance); } CloudContext(ConcurrentMap<String, String> tags); }
CloudContext { public void setRoleInstance(String roleInstance) { MapUtil.setStringValueOrRemove(tags, ContextTagKeys.getKeys().getCloudRoleInstance(), roleInstance); } CloudContext(ConcurrentMap<String, String> tags); void setRole(String role); String getRole(); void setRoleInstance(String roleInstance); String getRoleInstance(); }
CloudContext { public void setRoleInstance(String roleInstance) { MapUtil.setStringValueOrRemove(tags, ContextTagKeys.getKeys().getCloudRoleInstance(), roleInstance); } CloudContext(ConcurrentMap<String, String> tags); void setRole(String role); String getRole(); void setRoleInstance(String roleInstance); String getRoleInstance();  }