org.pentaho.di.core.parameters
Class ParameterSimpleTransTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.pentaho.di.core.parameters.ParameterSimpleTransTest
All Implemented Interfaces:
junit.framework.Test

public class ParameterSimpleTransTest
extends junit.framework.TestCase

Test class for parameters in transformations.

Author:
Sven Boden

Constructor Summary
ParameterSimpleTransTest()
           
 
Method Summary
 void checkRows(List<RowMetaAndData> rows1, List<RowMetaAndData> rows2)
          Check the 2 lists comparing the rows in order.
 List<RowMetaAndData> createResultData1()
           
 List<RowMetaAndData> createResultData2()
           
 List<RowMetaAndData> createResultData3()
           
 List<RowMetaAndData> createResultData5()
           
 List<RowMetaAndData> createResultData6()
           
 RowMetaInterface createResultRowMetaInterface1()
           
 RowMetaInterface createResultRowMetaInterface2()
           
 RowMetaInterface createResultRowMetaInterface3()
           
 RowMetaInterface createResultRowMetaInterface5()
           
 RowMetaInterface createResultRowMetaInterface6()
           
 void testParameterSimpleTrans1()
          Test case for parameters using a simple transformation.
 void testParameterSimpleTrans2()
          Test case for parameters using a simple transformation.
 void testParameterSimpleTrans3()
          Test case for parameters using a simple transformation.
 void testParameterSimpleTrans4()
          Test case for parameters using a simple transformation.
 void testParameterSimpleTrans5()
          Test case for parameters using a simple transformation.
 void testParameterSimpleTrans6()
          Test case for parameters using a simple transformation.
 
Methods inherited from class junit.framework.TestCase
countTestCases, getName, run, run, runBare, setName, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSame, format
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ParameterSimpleTransTest

public ParameterSimpleTransTest()
Method Detail

createResultRowMetaInterface1

public RowMetaInterface createResultRowMetaInterface1()

createResultData1

public List<RowMetaAndData> createResultData1()

createResultRowMetaInterface2

public RowMetaInterface createResultRowMetaInterface2()

createResultData2

public List<RowMetaAndData> createResultData2()

createResultRowMetaInterface3

public RowMetaInterface createResultRowMetaInterface3()

createResultData3

public List<RowMetaAndData> createResultData3()

createResultRowMetaInterface5

public RowMetaInterface createResultRowMetaInterface5()

createResultData5

public List<RowMetaAndData> createResultData5()

createResultRowMetaInterface6

public RowMetaInterface createResultRowMetaInterface6()

createResultData6

public List<RowMetaAndData> createResultData6()

checkRows

public void checkRows(List<RowMetaAndData> rows1,
                      List<RowMetaAndData> rows2)
Check the 2 lists comparing the rows in order. If they are not the same fail the test.

Parameters:
rows1 - first row set to compare
rows2 - second row set to compare

testParameterSimpleTrans1

public void testParameterSimpleTrans1()
                               throws Exception
Test case for parameters using a simple transformation.

Throws:
Exception - exception on any problem.

testParameterSimpleTrans2

public void testParameterSimpleTrans2()
                               throws Exception
Test case for parameters using a simple transformation. Here 1 parameter is not provided as value, so the default will be used.

Throws:
Exception - exception on any problem.

testParameterSimpleTrans3

public void testParameterSimpleTrans3()
                               throws Exception
Test case for parameters using a simple transformation. Here blocking some unwise usage of parameters.

Throws:
Exception - exception on any problem.

testParameterSimpleTrans4

public void testParameterSimpleTrans4()
                               throws Exception
Test case for parameters using a simple transformation. Check whether parameters override variables.

Throws:
Exception - exception on any problem.

testParameterSimpleTrans5

public void testParameterSimpleTrans5()
                               throws Exception
Test case for parameters using a simple transformation. Check whether parameters override variables.

Throws:
Exception - exception on any problem.

testParameterSimpleTrans6

public void testParameterSimpleTrans6()
                               throws Exception
Test case for parameters using a simple transformation. Check whether parameters override variables.

Throws:
Exception - exception on any problem.