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

Examples of org.pentaho.platform.engine.core.system.GlobalListsPublisher.publish()


    assertEquals( Messages.getInstance().getString( "GlobalListsPublisher.USER_SYSTEM_SETTINGS" ), globals.getName() );
    assertEquals( Messages.getInstance().getString( "GlobalListsPublisher.USER_DESCRIPTION" ), globals.getDescription() );
    assertTrue( !globals.getName().startsWith( "!" ) );
    assertTrue( !globals.getDescription().startsWith( "!" ) );
    assertNotNull( globals.getLogger() );
    String resultMsg = globals.publish( session );
    assertEquals( Messages.getInstance().getString( "GlobalListsPublisher.USER_SYSTEM_SETTINGS_UPDATED" ), resultMsg );

    assertEquals( 0, engine.executeCount );
    PentahoSystem.setSessionStartupActions( actions );
    IParameterProvider globalParams = PentahoSystem.getGlobalParameters();
View Full Code Here


    assertEquals( 0, engine.executeCount );
    PentahoSystem.setSessionStartupActions( actions );
    IParameterProvider globalParams = PentahoSystem.getGlobalParameters();

    resultMsg = globals.publish( session );
    assertEquals( 1, engine.executeCount );
    assertEquals( Messages.getInstance().getString( "GlobalListsPublisher.USER_SYSTEM_SETTINGS_UPDATED" ), resultMsg );

    // check that we made it all the way to executing the startup action
    assertEquals( session, engine.initSession );
View Full Code Here

    assertEquals( startupAction1.getActionPath(), engine.actionPath );
    assertEquals( "testvalue", globalParams.getParameter( "testoutput" ) );

    param.setValue( "testvalue2" );

    resultMsg = globals.publish( session );
    assertEquals( Messages.getInstance().getString( "GlobalListsPublisher.USER_SYSTEM_SETTINGS_UPDATED" ), resultMsg );
    assertEquals( 2, engine.executeCount );

    assertNotNull( globalParams );
    assertEquals( "testvalue2", globalParams.getParameter( "testoutput" ) );
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.