Examples of MicroPlatform


Examples of org.pentaho.test.platform.engine.core.MicroPlatform

  private MicroPlatform microPlatform;

  @Before
  public void init0() {
    microPlatform = new MicroPlatform( "test-src/solution" );
    microPlatform.define( ISolutionEngine.class, SolutionEngine.class );
    microPlatform.define( IUnifiedRepository.class, FileSystemBackedUnifiedRepository.class, Scope.GLOBAL );
    microPlatform.define( IMondrianCatalogService.class, MondrianCatalogHelper.class, Scope.GLOBAL );
    microPlatform.define( "connection-SQL", SQLConnection.class );
    microPlatform.define( "connection-MDX", MDXConnection.class );
View Full Code Here

Examples of org.pentaho.test.platform.engine.core.MicroPlatform

  final String SYSTEM_FOLDER = "/system"; //$NON-NLS-1$
  private MicroPlatform mp;

  @Before
  public void setUp() throws Exception {
    mp = new MicroPlatform();
    mp.defineInstance( IAuthorizationPolicy.class, new TestAuthorizationPolicy() );
    mp.start();

    ISystemConfig systemConfig = new SystemConfig();
    IConfiguration securityConfig = mock( IConfiguration.class );
View Full Code Here

Examples of org.pentaho.test.platform.engine.core.MicroPlatform

    PentahoSessionHolder.setStrategyName( PentahoSessionHolder.MODE_INHERITABLETHREADLOCAL );
  }

  @Before
  public void setUp() throws Exception {
    mp = new MicroPlatform();
    // used by DefaultPentahoJackrabbitAccessControlHelper
    mp.defineInstance( IAuthorizationPolicy.class, authorizationPolicy );
    mp.defineInstance( ITenantManager.class, tenantManager );
    mp.define( ITenant.class, Tenant.class );
    mp.defineInstance( "tenantedUserNameUtils", tenantedUserNameUtils );
View Full Code Here

Examples of org.pentaho.test.platform.engine.core.MicroPlatform

  private MicroPlatform mp;

  @Override
  protected void setUp() throws Exception {
    // Setup the temp email config file
    mp = new MicroPlatform();
    mp.defineInstance( IAuthorizationPolicy.class, new TestAuthorizationPolicy() );
    mp.start();

    defaultConfigFile = File.createTempFile( "email_config_", ".xml" );
    this.emailResource = new EmailResource( new EmailService( defaultConfigFile ) );
View Full Code Here

Examples of org.pentaho.test.platform.engine.core.MicroPlatform

  @Before
  public void init() throws PlatformInitializationException {
    System.setProperty( "log4j.logger.org.pentaho", "INFO" );
    LogFactory.getLog( "test" ).info( "i'm here" );

    booter = new MicroPlatform();
    booter.define( ISolutionEngine.class, SolutionEngine.class, Scope.GLOBAL );
    booter.define( IPluginManager.class, TestPluginManager.class, Scope.GLOBAL );
    booter.define( "contentrepo", TestOutputHandler.class, Scope.GLOBAL );

    actionList.clear();
View Full Code Here

Examples of org.pentaho.test.platform.engine.core.MicroPlatform

  private MicroPlatform microPlatform;

  @Before
  public void init0() {

    microPlatform = new MicroPlatform( "test-src/solution" );
    microPlatform.define( ISolutionEngine.class, SolutionEngine.class );
    microPlatform.define( IMetadataDomainRepository.class, InMemoryMetadataDomainRepository.class, Scope.GLOBAL );
    microPlatform.define( "connection-SQL", SQLConnection.class );
    microPlatform.define( IUnifiedRepository.class, FileSystemBackedUnifiedRepository.class, Scope.GLOBAL );
    FileSystemBackedUnifiedRepository repos =
View Full Code Here

Examples of org.pentaho.test.platform.engine.core.MicroPlatform

    PentahoSessionHolder.setStrategyName( PentahoSessionHolder.MODE_INHERITABLETHREADLOCAL );
  }

  @Before
  public void setUp() throws Exception {
    mp = new MicroPlatform();
    // used by DefaultPentahoJackrabbitAccessControlHelper
    mp.defineInstance( IAuthorizationPolicy.class, authorizationPolicy );
    mp.defineInstance( ITenantManager.class, tenantManager );
    mp.define( ITenant.class, Tenant.class );
    mp.defineInstance( "tenantedUserNameUtils", tenantedUserNameUtils );
View Full Code Here

Examples of org.pentaho.test.platform.engine.core.MicroPlatform

  }

  public void testCreatePoolNoDialect() throws Exception {
    DatabaseDialectService dialectService = new DatabaseDialectService( false );
    final DatabaseTypeHelper databaseTypeHelper = new DatabaseTypeHelper( dialectService.getDatabaseTypes() );
    mp = new MicroPlatform();
    mp.defineInstance( IDatabaseDialectService.class, dialectService );
    mp.start();

    final DatabaseConnection con = new DatabaseConnection();
    con.setId( "Postgres" );
View Full Code Here

Examples of org.pentaho.test.platform.engine.core.MicroPlatform

  }

  public void testCreatePoolNoClassName() throws Exception {
    DatabaseDialectService dialectService = new DatabaseDialectService( false );
    final DatabaseTypeHelper databaseTypeHelper = new DatabaseTypeHelper( dialectService.getDatabaseTypes() );
    mp = new MicroPlatform();
    mp.defineInstance( IDatabaseDialectService.class, dialectService );
    mp.start();

    final DatabaseConnection con = new DatabaseConnection();
    con.setId( "Postgres" );
View Full Code Here

Examples of org.pentaho.test.platform.engine.core.MicroPlatform

  }

  public void testCreateDatasourceNoDialect() throws Exception {
    DatabaseDialectService dialectService = new DatabaseDialectService( false );
    final DatabaseTypeHelper databaseTypeHelper = new DatabaseTypeHelper( dialectService.getDatabaseTypes() );
    mp = new MicroPlatform();
    mp.defineInstance( IDatabaseDialectService.class, dialectService );
    mp.start();
    final DatabaseConnection con = new DatabaseConnection();
    con.setId( "Postgres" );
    con.setName( "Postgres" );
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.