org.pentaho.di.trans.steps.scriptvalues_mod
Class OptimizationLevelTest

java.lang.Object
  extended by org.pentaho.di.trans.steps.scriptvalues_mod.OptimizationLevelTest

public class OptimizationLevelTest
extends Object

Tests setting the optimization level of ScriptValuesMetaMod. This unit test will call the ScriptValuesMetaMod.check() to test the setting. This class depends on JavaScriptSpecialTest for the creation of test data. The java script optimization is described here: https://developer.mozilla.org/en/Rhino_Optimization If Rhino's error message is changed in future releases then this unit test will break. In that case RANGE_ERROR_MESSAGE_PREFIX will have to be modified accordingly.

Author:
sflatley

Constructor Summary
OptimizationLevelTest()
           
 
Method Summary
 void testOptimizationLevelminus1Through9()
          Runs a test for valid values a a few invalid ones.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OptimizationLevelTest

public OptimizationLevelTest()
Method Detail

testOptimizationLevelminus1Through9

public void testOptimizationLevelminus1Through9()
Runs a test for valid values a a few invalid ones.