@Test public void testSetId() { ConcurrentHashMap<String, String> map = new ConcurrentHashMap<String, String>(); UserContext context = new UserContext(map); context.setId("mock"); assertEquals("mock", context.getId()); assertEquals(1, map.size()); assertEquals("mock", map.get(ContextTagKeys.getKeys().getUserId())); }
public void setId(String version) { MapUtil.setStringValueOrRemove(tags, ContextTagKeys.getKeys().getUserId(), version); }
UserContext { public void setId(String version) { MapUtil.setStringValueOrRemove(tags, ContextTagKeys.getKeys().getUserId(), version); } }
UserContext { public void setId(String version) { MapUtil.setStringValueOrRemove(tags, ContextTagKeys.getKeys().getUserId(), version); } UserContext(ConcurrentMap<String, String> tags); }
UserContext { public void setId(String version) { MapUtil.setStringValueOrRemove(tags, ContextTagKeys.getKeys().getUserId(), version); } UserContext(ConcurrentMap<String, String> tags); String getId(); void setId(String version); void setAccountId(String version); String getUserAgent(); void setUserAgent(String version); Date getAcquisitionDate(); void setAcquisitionDate(Date version); }
UserContext { public void setId(String version) { MapUtil.setStringValueOrRemove(tags, ContextTagKeys.getKeys().getUserId(), version); } UserContext(ConcurrentMap<String, String> tags); String getId(); void setId(String version); void setAccountId(String version); String getUserAgent(); void setUserAgent(String version); Date getAcquisitionDate(); void setAcquisitionDate(Date version);  }