use of java.awt.MenuContainer in project bnd by bndtools.
the class PluginTest method testLoadPluginWithPath.
public void testLoadPluginWithPath() {
Builder p = new Builder();
p.setProperty(Constants.PLUGIN, "thinlet.Thinlet;path:=jar/thinlet.jar");
List<MenuContainer> plugins = p.getPlugins(MenuContainer.class);
assertEquals(0, p.getErrors().size());
assertEquals(1, plugins.size());
assertEquals("thinlet.Thinlet", plugins.get(0).getClass().getName());
}
use of java.awt.MenuContainer in project bnd by bndtools.
the class PluginTest method testLoadPluginWithGlobalPluginPath.
public void testLoadPluginWithGlobalPluginPath() {
Builder p = new Builder();
p.setProperty(Constants.PLUGIN, "thinlet.Thinlet");
p.setProperty(Constants.PLUGINPATH, "jar/thinlet.jar");
List<MenuContainer> plugins = p.getPlugins(MenuContainer.class);
assertEquals(0, p.getErrors().size());
assertEquals(1, plugins.size());
assertEquals("thinlet.Thinlet", plugins.get(0).getClass().getName());
}
Aggregations