use of org.pentaho.platform.api.engine.IRuntimeContext in project pentaho-platform by pentaho.
the class ResultsetCompareIT method testRSCompareNotOK4.
public void testRSCompareNotOK4() {
startTest();
// $NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
IRuntimeContext context = run("/test/rules/ResultSetCompareTest_error4.xaction");
assertEquals(context.getStatus(), IRuntimeContext.RUNTIME_CONTEXT_VALIDATE_FAIL);
finishTest();
}
use of org.pentaho.platform.api.engine.IRuntimeContext in project pentaho-platform by pentaho.
the class ResultsetCompareIT method testRSCompareNotOK5.
public void testRSCompareNotOK5() {
startTest();
// $NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
IRuntimeContext context = run("/test/rules/ResultSetCompareTest_error5.xaction");
assertEquals(context.getStatus(), IRuntimeContext.RUNTIME_STATUS_FAILURE);
finishTest();
}
use of org.pentaho.platform.api.engine.IRuntimeContext in project pentaho-platform by pentaho.
the class ResultsetCompareIT method testRSCompareNotOK1.
public void testRSCompareNotOK1() {
startTest();
// $NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
IRuntimeContext context = run("/test/rules/ResultSetCompareTest_error1.xaction");
// $NON-NLS-1$
IActionParameter rtn = context.getOutputParameter("COMPARERESULT");
assertEquals(Messages.getInstance().getString("BaseTest.USER_RUNNING_ACTION_SEQUENCE"), IRuntimeContext.RUNTIME_STATUS_SUCCESS, // $NON-NLS-1$
context.getStatus());
assertNotNull(rtn);
String compareResult = rtn.getStringValue();
// $NON-NLS-1$
assertEquals(compareResult, "Eastern");
finishTest();
}
use of org.pentaho.platform.api.engine.IRuntimeContext in project pentaho-platform by pentaho.
the class ResultsetIT method testJavaScriptResultSet.
public void testJavaScriptResultSet() {
startTest();
// $NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
IRuntimeContext context = run("/test/rules/JavaScriptResultSetTest.xaction");
assertEquals(Messages.getInstance().getString("BaseTest.USER_RUNNING_ACTION_SEQUENCE"), IRuntimeContext.RUNTIME_STATUS_SUCCESS, // $NON-NLS-1$
context.getStatus());
finishTest();
}
use of org.pentaho.platform.api.engine.IRuntimeContext in project pentaho-platform by pentaho.
the class ResultsetIT method testResultSet.
public void testResultSet() {
startTest();
// $NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
IRuntimeContext context = run("/test/rules/ResultSetTest.xaction");
assertEquals(Messages.getInstance().getString("BaseTest.USER_RUNNING_ACTION_SEQUENCE"), IRuntimeContext.RUNTIME_STATUS_SUCCESS, // $NON-NLS-1$
context.getStatus());
finishTest();
}
Aggregations