use of org.pentaho.test.platform.engine.core.MicroPlatform in project pentaho-platform by pentaho.
the class DefaultPluginPerspectiveManagerIT method init0.
@Before
public void init0() {
MicroPlatform microPlatform = new MicroPlatform(TestResourceLocation.TEST_RESOURCES + "/PluginManagerTest");
microPlatform.define(IPluginPerspectiveManager.class, DefaultPluginPerspectiveManager.class);
}
use of org.pentaho.test.platform.engine.core.MicroPlatform in project pentaho-platform by pentaho.
the class PluginAdapterIT method init0.
@SuppressWarnings("deprecation")
@Before
public void init0() {
microPlatform = new MicroPlatform(TestResourceLocation.TEST_RESOURCES + "/PluginManagerTest/");
microPlatform.define(ISolutionEngine.class, SolutionEngine.class);
microPlatform.define(IPluginManager.class, DefaultPluginManager.class);
microPlatform.define(IPluginProvider.class, SystemPathXmlPluginProvider.class);
microPlatform.define(IServiceManager.class, DefaultServiceManager.class);
session = new StandaloneSession();
pluginAdapter = new PluginAdapter();
microPlatform.addAdminAction(pluginAdapter);
microPlatform.init();
}
use of org.pentaho.test.platform.engine.core.MicroPlatform in project pentaho-platform by pentaho.
the class LocalizationServletIT method init.
@BeforeClass
public static void init() throws PlatformInitializationException {
StandaloneSession session = new StandaloneSession();
microPlatform = new MicroPlatform(TestResourceLocation.TEST_RESOURCES + "/web-servlet-solution");
microPlatform.define(ISolutionEngine.class, SolutionEngine.class);
microPlatform.define(IServiceManager.class, DefaultServiceManager.class, IPentahoDefinableObjectFactory.Scope.GLOBAL);
microPlatform.define(IPluginResourceLoader.class, PluginResourceLoader.class);
microPlatform.define(IPluginProvider.class, SystemPathXmlPluginProvider.class);
microPlatform.define(IPluginManager.class, DefaultPluginManager.class, IPentahoDefinableObjectFactory.Scope.GLOBAL);
PentahoSystem.setSystemSettingsService(new PathBasedSystemSettings());
PentahoSessionHolder.setSession(session);
IPluginManager pluginManager = PentahoSystem.get(IPluginManager.class);
microPlatform.define(IPluginProvider.class, TestPluginProvider.class);
microPlatform.start();
pluginManager.reload(session);
}
use of org.pentaho.test.platform.engine.core.MicroPlatform in project pentaho-platform by pentaho.
the class ServiceLayerTest method beforeClass.
@BeforeClass
public static void beforeClass() throws PlatformInitializationException {
mp = new MicroPlatform(SOLUTION_PATH);
mp.setSpringConfig(SOLUTION_PATH + SYSTEM_FOLDER + "/" + DEFAULT_SPRING_CONFIG_FILE_NAME);
mp.start();
}
use of org.pentaho.test.platform.engine.core.MicroPlatform in project pentaho-platform by pentaho.
the class ActionDelegateTest method setUp.
@Before
public void setUp() throws PlatformInitializationException {
booter = new MicroPlatform(SOLUTION_PATH);
booter.define(ISolutionEngine.class, SolutionEngine.class, Scope.GLOBAL);
booter.define(IPluginManager.class, TestPluginManager.class, Scope.GLOBAL);
booter.define("contentrepo", TestOutputHandler.class, Scope.GLOBAL);
booter.start();
}
Aggregations