use of org.pentaho.platform.api.engine.IPlatformPlugin in project pentaho-platform by pentaho.
the class SystemPathPluginProviderIT method testLoadPerspectives.
@SuppressWarnings("deprecation")
@Test
public void testLoadPerspectives() throws PlatformPluginRegistrationException {
microPlatform.init();
List<IPlatformPlugin> plugins = provider.getPlugins(new StandaloneSession());
IPlatformPlugin plugin = (IPlatformPlugin) CollectionUtils.find(plugins, new PluginNameMatcherPredicate("Plugin 1"));
assertNotNull("Plugin 1 should have been found", plugin);
assertEquals(2, plugin.getPluginPerspectives().size());
IPluginPerspective perspective = plugin.getPluginPerspectives().get(0);
assertEquals(perspective.getId(), "perspective1");
assertEquals(perspective.getTitle(), "Test Perspective 1");
assertEquals(perspective.getLayoutPriority(), 500);
}
Aggregations