org.pentaho.di.trans.steps.append
Class AppendTest

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

public class AppendTest
extends junit.framework.TestCase

Test class for the Append step.

Author:
Sven Boden

Constructor Summary
AppendTest()
           
 
Method Summary
 void checkRows(List<RowMetaAndData> rows1, List<RowMetaAndData> rows2)
          Check the 2 lists comparing the rows in order.
 List<RowMetaAndData> createData1()
          Create data for the first hop.
 List<RowMetaAndData> createData2()
          Create data for the second hop.
 RowMetaInterface createRowMetaInterface()
           
 void testAppendStep()
          Test case for Append 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

AppendTest

public AppendTest()
Method Detail

createRowMetaInterface

public RowMetaInterface createRowMetaInterface()

createData1

public List<RowMetaAndData> createData1()
Create data for the first hop.


createData2

public List<RowMetaAndData> createData2()
Create data for the second hop.


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.


testAppendStep

public void testAppendStep()
                    throws Exception
Test case for Append step. 2 Injector steps to an append step to a dummy step. Rows go in, the order should be as defined in the append step.

Throws:
Exception