@Test public void testGetPluginNames() { pluginDocTree.addPlugin("pluginDoc1", pluginDoc1); pluginDocTree.addPlugin("pluginDoc2", pluginDoc2); assertThat(pluginDocTree.getPluginNames(), containsInAnyOrder("pluginDoc1", "pluginDoc2")); }
public Set<String> getPluginNames() { return plugins.keySet(); }
PluginDocTree { public Set<String> getPluginNames() { return plugins.keySet(); } }
PluginDocTree { public Set<String> getPluginNames() { return plugins.keySet(); }  }
PluginDocTree { public Set<String> getPluginNames() { return plugins.keySet(); }  void addPlugin(String name, PluginDoc plugin); void addCommand(String pluginName, CommandDoc command); Set<String> getPluginNames(); PluginDoc getPlugin(String name); List<CommandDoc> getCommands(String pluginName); }
PluginDocTree { public Set<String> getPluginNames() { return plugins.keySet(); }  void addPlugin(String name, PluginDoc plugin); void addCommand(String pluginName, CommandDoc command); Set<String> getPluginNames(); PluginDoc getPlugin(String name); List<CommandDoc> getCommands(String pluginName);  }