@Test public void testSetVersion() { ConcurrentHashMap<String, String> map = new ConcurrentHashMap<String, String>(); ComponentContext context = new ComponentContext(map); context.setVersion("version1"); assertEquals(context.getVersion(), "version1"); assertEquals(map.size(), 1); assertEquals(map.get(ContextTagKeys.getKeys().getApplicationVersion()), "version1"); }
public void setVersion(String version) { MapUtil.setStringValueOrRemove(tags, ContextTagKeys.getKeys().getApplicationVersion(), version); }
ComponentContext { public void setVersion(String version) { MapUtil.setStringValueOrRemove(tags, ContextTagKeys.getKeys().getApplicationVersion(), version); } }
ComponentContext { public void setVersion(String version) { MapUtil.setStringValueOrRemove(tags, ContextTagKeys.getKeys().getApplicationVersion(), version); } ComponentContext(ConcurrentMap<String, String> tags); }
ComponentContext { public void setVersion(String version) { MapUtil.setStringValueOrRemove(tags, ContextTagKeys.getKeys().getApplicationVersion(), version); } ComponentContext(ConcurrentMap<String, String> tags); void setVersion(String version); }
ComponentContext { public void setVersion(String version) { MapUtil.setStringValueOrRemove(tags, ContextTagKeys.getKeys().getApplicationVersion(), version); } ComponentContext(ConcurrentMap<String, String> tags); void setVersion(String version);  }