@Test public void testSetId() { ConcurrentHashMap<String, String> map = new ConcurrentHashMap<String, String>(); OperationContext context = new OperationContext(map); context.setId("mock"); assertEquals("mock", context.getId()); assertEquals(1, map.size()); assertEquals("mock", map.get(ContextTagKeys.getKeys().getOperationId())); }
public void setId(String id) { MapUtil.setStringValueOrRemove(tags, ContextTagKeys.getKeys().getOperationId(), id); }
OperationContext { public void setId(String id) { MapUtil.setStringValueOrRemove(tags, ContextTagKeys.getKeys().getOperationId(), id); } }
OperationContext { public void setId(String id) { MapUtil.setStringValueOrRemove(tags, ContextTagKeys.getKeys().getOperationId(), id); } OperationContext(Map<String, String> tags); }
OperationContext { public void setId(String id) { MapUtil.setStringValueOrRemove(tags, ContextTagKeys.getKeys().getOperationId(), id); } OperationContext(Map<String, String> tags); String getId(); void setId(String id); void setParentId(String parentId); String getParentId(); String getName(); void setName(String name); String getSyntheticSource(); void setSyntheticSource(String syntheticSource); }
OperationContext { public void setId(String id) { MapUtil.setStringValueOrRemove(tags, ContextTagKeys.getKeys().getOperationId(), id); } OperationContext(Map<String, String> tags); String getId(); void setId(String id); void setParentId(String parentId); String getParentId(); String getName(); void setName(String name); String getSyntheticSource(); void setSyntheticSource(String syntheticSource);  }