@Test public void testSetName() { ConcurrentHashMap<String, String> map = new ConcurrentHashMap<String, String>(); OperationContext context = new OperationContext(map); context.setName("mock"); assertEquals("mock", context.getName()); assertEquals(1, map.size()); assertEquals("mock", map.get(ContextTagKeys.getKeys().getOperationName())); }
public void setName(String name) { MapUtil.setStringValueOrRemove(tags, ContextTagKeys.getKeys().getOperationName(), name); }
OperationContext { public void setName(String name) { MapUtil.setStringValueOrRemove(tags, ContextTagKeys.getKeys().getOperationName(), name); } }
OperationContext { public void setName(String name) { MapUtil.setStringValueOrRemove(tags, ContextTagKeys.getKeys().getOperationName(), name); } OperationContext(Map<String, String> tags); }
OperationContext { public void setName(String name) { MapUtil.setStringValueOrRemove(tags, ContextTagKeys.getKeys().getOperationName(), name); } 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 setName(String name) { MapUtil.setStringValueOrRemove(tags, ContextTagKeys.getKeys().getOperationName(), name); } 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);  }