Search in sources :

Example 1 with ChartBeansSystemListener

use of org.pentaho.platform.plugin.action.chartbeans.ChartBeansSystemListener in project pentaho-platform by pentaho.

the class ChartBeansSystemListenerIT method testBadStartupFile.

/**
 * Test method for startup from file with no chart engines defined.
 */
@Test
public void testBadStartupFile() {
    ChartBeansSystemListener sl = new ChartBeansSystemListener();
    sl.setConfigFile("chartbeans/chartbeans_config_no_engines.xml");
    Assert.assertFalse(sl.startup(null));
}
Also used : ChartBeansSystemListener(org.pentaho.platform.plugin.action.chartbeans.ChartBeansSystemListener) Test(org.junit.Test)

Example 2 with ChartBeansSystemListener

use of org.pentaho.platform.plugin.action.chartbeans.ChartBeansSystemListener in project pentaho-platform by pentaho.

the class ChartBeansSystemListenerIT method testStartup.

/**
 * Test method for
 * {@link org.pentaho.platform.plugin.action.chartbeans.ChartBeansSystemListener#
 * startup(org.pentaho.platform.api.engine.IPentahoSession)}
 * .
 */
@Test
public void testStartup() {
    IPentahoSystemListener sl = new ChartBeansSystemListener();
    Assert.assertTrue(sl.startup(null));
}
Also used : IPentahoSystemListener(org.pentaho.platform.api.engine.IPentahoSystemListener) ChartBeansSystemListener(org.pentaho.platform.plugin.action.chartbeans.ChartBeansSystemListener) Test(org.junit.Test)

Aggregations

Test (org.junit.Test)2 ChartBeansSystemListener (org.pentaho.platform.plugin.action.chartbeans.ChartBeansSystemListener)2 IPentahoSystemListener (org.pentaho.platform.api.engine.IPentahoSystemListener)1