@Test(groups = "fast") public void testJavaPluginWithAllDisabled() throws IOException, InterruptedException, PluginConfigException { final File plugin = createNewJavaPlugin("LOL", new String[]{"1.2", "0.5", "1.0", "2.1", "0.8"}, null); addDisabledFile(plugin, "0.5"); addDisabledFile(plugin, "0.8"); addDisabledFile(plugin, "1.0"); addDisabledFile(plugin, "1.2"); addDisabledFile(plugin, "2.1"); final List<PluginJavaConfig> javaConfigs = pluginFinder.getLatestJavaPlugins(); assertEquals(javaConfigs.size(), 0); }
public List<PluginJavaConfig> getLatestJavaPlugins() throws PluginConfigException, IOException { return getLatestPluginForLanguage(PluginLanguage.JAVA); }
PluginFinder { public List<PluginJavaConfig> getLatestJavaPlugins() throws PluginConfigException, IOException { return getLatestPluginForLanguage(PluginLanguage.JAVA); } }
PluginFinder { public List<PluginJavaConfig> getLatestJavaPlugins() throws PluginConfigException, IOException { return getLatestPluginForLanguage(PluginLanguage.JAVA); } @Inject  PluginFinder(final OSGIConfig osgiConfig); }
PluginFinder { public List<PluginJavaConfig> getLatestJavaPlugins() throws PluginConfigException, IOException { return getLatestPluginForLanguage(PluginLanguage.JAVA); } @Inject  PluginFinder(final OSGIConfig osgiConfig); List<PluginJavaConfig> getLatestJavaPlugins(); List<PluginRubyConfig> getLatestRubyPlugins(); List<PluginConfig> getVersionsForPlugin(final String lookupName, @Nullable final String version); String getPluginVersionSelectedForStart(final String pluginName); Map<String, LinkedList<PluginConfig>> getAllPlugins(); void reloadPlugins(); PluginIdentifier resolvePluginKey(final String pluginKey); }
PluginFinder { public List<PluginJavaConfig> getLatestJavaPlugins() throws PluginConfigException, IOException { return getLatestPluginForLanguage(PluginLanguage.JAVA); } @Inject  PluginFinder(final OSGIConfig osgiConfig); List<PluginJavaConfig> getLatestJavaPlugins(); List<PluginRubyConfig> getLatestRubyPlugins(); List<PluginConfig> getVersionsForPlugin(final String lookupName, @Nullable final String version); String getPluginVersionSelectedForStart(final String pluginName); Map<String, LinkedList<PluginConfig>> getAllPlugins(); void reloadPlugins(); PluginIdentifier resolvePluginKey(final String pluginKey);  }