org.pentaho.di.trans
Class TransformationTestCase

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.pentaho.di.trans.TransformationTestCase
All Implemented Interfaces:
junit.framework.Test
Direct Known Subclasses:
GetVariableMetaTest, RegexEvalTest, StringCutTest

public abstract class TransformationTestCase
extends junit.framework.TestCase


Constructor Summary
TransformationTestCase()
           
TransformationTestCase(String name)
           
 
Method Summary
 void checkRows(List<RowMetaAndData> rows1, List<RowMetaAndData> rows2)
          Check the 2 lists comparing the rows in order.
 List<RowMetaAndData> createData(RowMetaInterface rm, Object[][] rows)
           
 RowMetaInterface createRowMetaInterface(ValueMeta... valueMetas)
           
 
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

TransformationTestCase

public TransformationTestCase()
                       throws KettleException
Throws:
KettleException

TransformationTestCase

public TransformationTestCase(String name)
                       throws KettleException
Throws:
KettleException
Method Detail

createRowMetaInterface

public RowMetaInterface createRowMetaInterface(ValueMeta... valueMetas)

createData

public List<RowMetaAndData> createData(RowMetaInterface rm,
                                       Object[][] rows)

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.