org.pentaho.di.trans.steps.rowgenerator
Class RowGeneratorTest

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

public class RowGeneratorTest
extends junit.framework.TestCase

Test class for the RowGenerator step. TODO For the moment only the basic stuff is verified. Formats, lengths, precision should best also be tested.

Author:
Sven Boden

Constructor Summary
RowGeneratorTest()
           
 
Method Summary
 void checkRows(List<RowMetaAndData> rows1, List<RowMetaAndData> rows2)
          Check the 2 lists comparing the rows in order.
 List<RowMetaAndData> createData()
           
 RowMetaInterface createRowMetaInterface()
           
 void testRowGenerator()
          Test case for Row Generator 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

RowGeneratorTest

public RowGeneratorTest()
Method Detail

createRowMetaInterface

public RowMetaInterface createRowMetaInterface()

createData

public List<RowMetaAndData> createData()

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.


testRowGenerator

public void testRowGenerator()
                      throws Exception
Test case for Row Generator step.

Throws:
Exception