@Test public void testSetLanguage() { ConcurrentHashMap<String, String> map = new ConcurrentHashMap<String, String>(); DeviceContext context = new DeviceContext(map); context.setLanguage("mock"); assertEquals(context.getLanguage(), "mock"); assertEquals(map.size(), 1); assertEquals(map.get(ContextTagKeys.getKeys().getDeviceLanguage()), "mock"); }
public void setLanguage(String language) { MapUtil.setStringValueOrRemove(tags, ContextTagKeys.getKeys().getDeviceLanguage(), language); }
DeviceContext { public void setLanguage(String language) { MapUtil.setStringValueOrRemove(tags, ContextTagKeys.getKeys().getDeviceLanguage(), language); } }
DeviceContext { public void setLanguage(String language) { MapUtil.setStringValueOrRemove(tags, ContextTagKeys.getKeys().getDeviceLanguage(), language); } DeviceContext(ConcurrentMap<String, String> tags); }
DeviceContext { public void setLanguage(String language) { MapUtil.setStringValueOrRemove(tags, ContextTagKeys.getKeys().getDeviceLanguage(), language); } DeviceContext(ConcurrentMap<String, String> tags); void setType(String type); String getId(); void setId(String id); void setOperatingSystem(String operatingSystem); void setOperatingSystemVersion(String operatingSystemVersion); void setOemName(String oemName); void setModel(String model); void setNetworkType(String networkType); void setScreenResolution(String screenResolution); void setLocale(String locale); void setLanguage(String language); @Deprecated void setRoleName(String roleName); @Deprecated void setRoleInstance(String roleInstance); }
DeviceContext { public void setLanguage(String language) { MapUtil.setStringValueOrRemove(tags, ContextTagKeys.getKeys().getDeviceLanguage(), language); } DeviceContext(ConcurrentMap<String, String> tags); void setType(String type); String getId(); void setId(String id); void setOperatingSystem(String operatingSystem); void setOperatingSystemVersion(String operatingSystemVersion); void setOemName(String oemName); void setModel(String model); void setNetworkType(String networkType); void setScreenResolution(String screenResolution); void setLocale(String locale); void setLanguage(String language); @Deprecated void setRoleName(String roleName); @Deprecated void setRoleInstance(String roleInstance);  }