org.pentaho.di.trans.steps.constant
Class ConstantTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.pentaho.di.trans.steps.constant.ConstantTest
All Implemented Interfaces:
junit.framework.Test

public class ConstantTest
extends junit.framework.TestCase

Test class for the Constant step.

Author:
Sven Boden

Constructor Summary
ConstantTest()
           
 
Method Summary
 void checkRows(List<RowMetaAndData> rows1, List<RowMetaAndData> rows2)
          Check the 2 lists comparing the rows in order.
 List<RowMetaAndData> createResultData1()
           
 RowMetaInterface createResultRowMetaInterface()
           
 void testConstant1()
          Test case for Constant step.
 
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

ConstantTest

public ConstantTest()
Method Detail

createResultRowMetaInterface

public RowMetaInterface createResultRowMetaInterface()

createResultData1

public List<RowMetaAndData> createResultData1()

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.


testConstant1

public void testConstant1()
                   throws Exception
Test case for Constant step. Row generator attached to a constant step.

Throws:
Exception