org.pentaho.di.trans.steps.scriptvalues_mod
Class OptimizationLevelTest
java.lang.Object
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
OptimizationLevelTest
public OptimizationLevelTest()
testOptimizationLevelminus1Through9
public void testOptimizationLevelminus1Through9()
- Runs a test for valid values a a few invalid ones.