Package org.pentaho.test.platform.engine.core

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


  }

  public void testCreateDatasourceNoClassName() 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


  public static final String SOLUTION_PATH = "test-res/solution";

  @BeforeClass
  public static void beforeClass() throws PlatformInitializationException {
    new MicroPlatform( SOLUTION_PATH ).start();
  }
View Full Code Here

  private static MicroPlatform mp;

  @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();
  }
View Full Code Here

  @Before
  public void setUp() throws Exception {
    loginAsRepositoryAdmin();
    SimpleJcrTestUtils.deleteItem( testJcrTemplate, ServerRepositoryPaths.getPentahoRootFolderPath() );
    mp = new MicroPlatform();
    // used by DefaultPentahoJackrabbitAccessControlHelper
    mp.defineInstance( "tenantedUserNameUtils", userNameUtils );
    mp.defineInstance( "tenantedRoleNameUtils", roleNameUtils );
    mp.defineInstance("ILockHelper", new DefaultLockHelper(userNameUtils));
View Full Code Here

  StandaloneSession session;

  @Before
  public void init0() {
    microPlatform = new MicroPlatform( "test-src/solution/" );
    microPlatform.define( ISolutionEngine.class, SolutionEngine.class );
    microPlatform.define( IChartBeansGenerator.class, DefaultChartBeansGenerator.class );
    microPlatform.define( IUnifiedRepository.class, FileSystemBackedUnifiedRepository.class, Scope.GLOBAL );
    FileSystemBackedUnifiedRepository repo =
        (FileSystemBackedUnifiedRepository) PentahoSystem.get( IUnifiedRepository.class );
View Full Code Here

  private PluginAdapter pluginAdapter;

  @SuppressWarnings( "deprecation" )
  @Before
  public void init0() {
    microPlatform = new MicroPlatform( "test-res/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 );
View Full Code Here

  private File tempDir = null;
  private File defaultConfigFile = null;
  private MicroPlatform mp;
  @Override
  public void setUp() throws Exception {
    mp = new MicroPlatform();
    mp.defineInstance( IAuthorizationPolicy.class, new TestAuthorizationPolicy() );
    mp.start();

    // Setup the temp directory
    tempDir = File.createTempFile( "EmailServiceTest", "" );
View Full Code Here

  }

  @Before
  public void init0() {
    microPlatform = new MicroPlatform();
    microPlatform.define( USER_ROLE_DAO_TXN, UserRoleDaoMock.class );
    microPlatform.define( IAclVoter.class, AclVoterMock.class );
    microPlatform.define( "passwordEncoder", PasswordEncoderMock.class );

    UserRoleDaoMock userRoleDao = PentahoSystem.get( UserRoleDaoMock.class, USER_ROLE_DAO_TXN, null );
View Full Code Here

public class MimeTypeListFactoryTest {

  @Test
  public void testGetMimeTypeList() throws Exception {
    MicroPlatform microPlatform = new MicroPlatform();

    StandaloneSpringPentahoObjectFactory objectFactory = new StandaloneSpringPentahoObjectFactory();
    objectFactory.init( "test-res/MimeTypeFactoryTest/MimeTypeFactoryTest.spring.xml", null );
    PentahoSystem.registerObjectFactory( objectFactory );
View Full Code Here

    }
  }

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

TOP

Related Classes of org.pentaho.test.platform.engine.core.MicroPlatform$Module

Copyright © 2018 www.massapicom. 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.