Package org.pentaho.platform.engine.core.system

Examples of org.pentaho.platform.engine.core.system.StandaloneSession.destroy()


      return callable.call();
    } finally {
      // Make sure to destroy the system session so we don't leak anything.
      if ( session != null ) {
        try {
          session.destroy();
        } catch ( Exception e ) {
          // We can safely ignore this.
          e.printStackTrace();
        }
      }
View Full Code Here


    assertEquals( "session name is wrong", "unknown", session.getName() ); //$NON-NLS-1$ //$NON-NLS-2$
    assertEquals( "session id is wrong", "unknown", session.getId() ); //$NON-NLS-1$ //$NON-NLS-2$
    assertEquals( "session locale is wrong", Locale.getDefault(), session.getLocale() ); //$NON-NLS-1$

    // make sure this does not blow up
    session.destroy();

    assertEquals( "session object name is wrong", StandaloneSession.class.getName(), session.getObjectName() ); //$NON-NLS-1$
  }

  protected void setUp() throws Exception {
View Full Code Here

    StandaloneSession session = new StandaloneSession( "BaseTest.DEBUG_JUNIT_SESSION" ); //$NON-NLS-1$
    Log log = session.getLogger();
    System.out.println( "Action Name for the Session is  " + session.getActionName() ); //$NON-NLS-1$
    session.setNotAuthenticated();
    log.info( "Session is active" ); //$NON-NLS-1$
    session.destroy();
    assertTrue( true );
    finishTest();
  }

  public void testUserSessionWithAuthentication() {
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.