org.pentaho.di.trans.steps.addsequence
Class AddSequenceTest

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

public class AddSequenceTest
extends junit.framework.TestCase

Test class for the Add sequence step. TODO: - Test steps using the same counter (harder to test because of concurrency issues).

Author:
Sven Boden

Constructor Summary
AddSequenceTest()
           
 
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 testAddSequence()
          Test case for add sequence 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

AddSequenceTest

public AddSequenceTest()
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.


testAddSequence

public void testAddSequence()
                     throws Exception
Test case for add sequence step. Row generator attached to several add sequence steps and checking whether the end result is as expected.

Throws:
Exception