@Test void test() { assertThat(this.configurationImpl.getInstalledPlugins(), arrayContainingInAnyOrder("Plugin1", "Plugin2", "io.github.amyassist.amy.plugin.example")); assertThat(this.configurationImpl.getInstalledPlugins(), arrayWithSize(3)); }
@Override public String[] getInstalledPlugins() { Set<String> pluginNames = this.pluginManager.getPlugins().stream().map(IPlugin::getUniqueName) .collect(Collectors.toSet()); return pluginNames.toArray(new String[pluginNames.size()]); }
ConfigurationImpl implements Configuration { @Override public String[] getInstalledPlugins() { Set<String> pluginNames = this.pluginManager.getPlugins().stream().map(IPlugin::getUniqueName) .collect(Collectors.toSet()); return pluginNames.toArray(new String[pluginNames.size()]); } }
ConfigurationImpl implements Configuration { @Override public String[] getInstalledPlugins() { Set<String> pluginNames = this.pluginManager.getPlugins().stream().map(IPlugin::getUniqueName) .collect(Collectors.toSet()); return pluginNames.toArray(new String[pluginNames.size()]); }  }
ConfigurationImpl implements Configuration { @Override public String[] getInstalledPlugins() { Set<String> pluginNames = this.pluginManager.getPlugins().stream().map(IPlugin::getUniqueName) .collect(Collectors.toSet()); return pluginNames.toArray(new String[pluginNames.size()]); }  @Override String[] getInstalledPlugins(); @Override String getPluginVersion(String pluginName); @Override String getPluginDescription(String pluginName); }
ConfigurationImpl implements Configuration { @Override public String[] getInstalledPlugins() { Set<String> pluginNames = this.pluginManager.getPlugins().stream().map(IPlugin::getUniqueName) .collect(Collectors.toSet()); return pluginNames.toArray(new String[pluginNames.size()]); }  @Override String[] getInstalledPlugins(); @Override String getPluginVersion(String pluginName); @Override String getPluginDescription(String pluginName);  }