org.pentaho.di.trans.steps.blockingstep
Class BlockingStepTest

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

public class BlockingStepTest
extends junit.framework.TestCase

Test class for the BlockingStep step.

Author:
Sven Boden

Constructor Summary
BlockingStepTest()
           
 
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 testBlockingStep()
          Test case for blocking step step.
 void testBlockingStepPassAll()
          Test case for blocking step step passing all rows.
 
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

BlockingStepTest

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


testBlockingStep

public void testBlockingStep()
                      throws Exception
Test case for blocking step step. Injector step to a blocking step to a dummy step. rows go in, only 1 row should be output (the last one).

Throws:
Exception

testBlockingStepPassAll

public void testBlockingStepPassAll()
                             throws Exception
Test case for blocking step step passing all rows. Injector step to a blocking step to a dummy step. rows go in, all rows should be output.

Throws:
Exception