@Test public void testSetOperatingSystem() { ConcurrentHashMap<String, String> map = new ConcurrentHashMap<String, String>(); DeviceContext context = new DeviceContext(map); context.setOperatingSystem("mock"); assertEquals("mock", context.getOperatingSystem()); assertEquals(1, map.size()); assertEquals("mock", map.get(ContextTagKeys.getKeys().getDeviceOS())); }
public void setOperatingSystem(String operatingSystem) { MapUtil.setStringValueOrRemove(tags, ContextTagKeys.getKeys().getDeviceOS(), operatingSystem); }
DeviceContext { public void setOperatingSystem(String operatingSystem) { MapUtil.setStringValueOrRemove(tags, ContextTagKeys.getKeys().getDeviceOS(), operatingSystem); } }
DeviceContext { public void setOperatingSystem(String operatingSystem) { MapUtil.setStringValueOrRemove(tags, ContextTagKeys.getKeys().getDeviceOS(), operatingSystem); } DeviceContext(ConcurrentMap<String, String> tags); }
DeviceContext { public void setOperatingSystem(String operatingSystem) { MapUtil.setStringValueOrRemove(tags, ContextTagKeys.getKeys().getDeviceOS(), operatingSystem); } 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 setOperatingSystem(String operatingSystem) { MapUtil.setStringValueOrRemove(tags, ContextTagKeys.getKeys().getDeviceOS(), operatingSystem); } 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);  }