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

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


  /**
   * @throws java.lang.Exception
   */
  @Before
  public void setUp() throws Exception {
    MicroPlatform mp = new MicroPlatform();
    mp.define( IPluginManager.class, TstPluginManager.class );
    mp.define( "IScheduler2", TestQuartzScheduler.class ); //$NON-NLS-1$
    mp.define( IUserRoleListService.class, StubUserRoleListService.class );
    mp.define( UserDetailsService.class, StubUserDetailsService.class );
    mp.define( IBlockoutManager.class, PentahoBlockoutManager.class );
    mp.start();

    blockOutManager = new PentahoBlockoutManager();
    scheduler = PentahoSystem.get( IScheduler.class, "IScheduler2", null ); //$NON-NLS-1$;

    jobIdsToClear.clear();
View Full Code Here


  private IScheduler scheduler;
  static final String TEST_USER = "TestUser";

  @Before
  public void init() throws SchedulerException, PlatformInitializationException {
    MicroPlatform mp = new MicroPlatform();
    mp.define( IPluginManager.class, TstPluginManager.class );
    mp.define( "IScheduler2", TestQuartzScheduler.class );
    mp.define( IUserRoleListService.class, StubUserRoleListService.class );
    mp.define( UserDetailsService.class, StubUserDetailsService.class );
    mp.start();

    scheduler = PentahoSystem.get( IScheduler.class, "IScheduler2", null );
    scheduler.start();
  }
View Full Code Here

public class UserDetailsRoleListWebServiceTest {
  private MicroPlatform microPlatform;

  @Before
  public void init0() {
    microPlatform = new MicroPlatform();
    microPlatform.define( IUserRoleListService.class, MockUserRoleListService.class );
    microPlatform.defineInstance( "useMultiByteEncoding", new Boolean( false ) );
  }
View Full Code Here

  private SimpleJobTrigger RUN_ONCE_IN_3_SECS;

  @Before
  public void init() throws SchedulerException, PlatformInitializationException {
    schedulerSvc = (ISchedulerService) applicationContext.getBean( "schedulerFromWs" );
    MicroPlatform mp = new MicroPlatform();
    mp.define( IPluginManager.class, TstPluginManager.class );
    mp.define( "IScheduler2", TestQuartzScheduler.class );
    mp.define( IUserRoleListService.class, StubUserRoleListService.class );
    mp.define( UserDetailsService.class, StubUserDetailsService.class );
    mp.start();

    scheduler = PentahoSystem.get( IScheduler.class, "IScheduler2", null );
    scheduler.start();

    MyAction.executed = false;
View Full Code Here

TOP

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

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.