@Test public void testSetAgentVersion() { ConcurrentHashMap<String, String> map = new ConcurrentHashMap<String, String>(); InternalContext context = new InternalContext(map); context.setAgentVersion("mock"); assertEquals("mock", context.getAgentVersion()); assertEquals(1, map.size()); assertEquals("mock", map.get(ContextTagKeys.getKeys().getInternalAgentVersion())); }
public void setAgentVersion(String version) { MapUtil.setStringValueOrRemove(tags, ContextTagKeys.getKeys().getInternalAgentVersion(), version); }
InternalContext { public void setAgentVersion(String version) { MapUtil.setStringValueOrRemove(tags, ContextTagKeys.getKeys().getInternalAgentVersion(), version); } }
InternalContext { public void setAgentVersion(String version) { MapUtil.setStringValueOrRemove(tags, ContextTagKeys.getKeys().getInternalAgentVersion(), version); } InternalContext(ConcurrentMap<String, String> tags); }
InternalContext { public void setAgentVersion(String version) { MapUtil.setStringValueOrRemove(tags, ContextTagKeys.getKeys().getInternalAgentVersion(), version); } InternalContext(ConcurrentMap<String, String> tags); String getSdkVersion(); void setSdkVersion(String version); String getAgentVersion(); void setAgentVersion(String version); String getNodeName(); void setNodeName(String nodeName); }
InternalContext { public void setAgentVersion(String version) { MapUtil.setStringValueOrRemove(tags, ContextTagKeys.getKeys().getInternalAgentVersion(), version); } InternalContext(ConcurrentMap<String, String> tags); String getSdkVersion(); void setSdkVersion(String version); String getAgentVersion(); void setAgentVersion(String version); String getNodeName(); void setNodeName(String nodeName);  }