@Test public void testSetSyntheticSource() { final String source = "mockSource"; ConcurrentHashMap<String, String> map = new ConcurrentHashMap<String, String>(); OperationContext context = new OperationContext(map); context.setSyntheticSource(source); assertEquals(source, context.getSyntheticSource()); assertEquals(1, map.size()); assertEquals(source, map.get(ContextTagKeys.getKeys().getSyntheticSource())); }
public void setSyntheticSource(String syntheticSource) { MapUtil.setStringValueOrRemove(tags, ContextTagKeys.getKeys().getSyntheticSource(), syntheticSource); }
OperationContext { public void setSyntheticSource(String syntheticSource) { MapUtil.setStringValueOrRemove(tags, ContextTagKeys.getKeys().getSyntheticSource(), syntheticSource); } }
OperationContext { public void setSyntheticSource(String syntheticSource) { MapUtil.setStringValueOrRemove(tags, ContextTagKeys.getKeys().getSyntheticSource(), syntheticSource); } OperationContext(Map<String, String> tags); }
OperationContext { public void setSyntheticSource(String syntheticSource) { MapUtil.setStringValueOrRemove(tags, ContextTagKeys.getKeys().getSyntheticSource(), syntheticSource); } 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 setSyntheticSource(String syntheticSource) { MapUtil.setStringValueOrRemove(tags, ContextTagKeys.getKeys().getSyntheticSource(), syntheticSource); } 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);  }