@Test(groups = "fast") public void testMultipleJavaVersions() throws IOException, InterruptedException, PluginConfigException { final File plugin = createNewJavaPlugin("FOO", new String[]{"1.2", "0.5", "1.0", "2.1", "0.8"}, null); final List<PluginJavaConfig> javaConfigs = pluginFinder.getLatestJavaPlugins(); assertEquals(javaConfigs.size(), 1); final PluginJavaConfig javaConfig = javaConfigs.get(0); assertEquals(javaConfig.getPluginName(), "FOO"); assertEquals(javaConfig.getVersion(), "2.1"); assertEquals(javaConfig.getBundleJarPath(), plugin.getAbsolutePath() + "/2.1" + "/FOO.jar"); }
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);  }