org.pentaho.di.trans.steps.nullif
Class NullIfTest

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

public class NullIfTest
extends junit.framework.TestCase

Test class for the NullIf step.

Author:
Sven Boden

Constructor Summary
NullIfTest()
           
 
Method Summary
 void checkRows(List<RowMetaAndData> rows1, List<RowMetaAndData> rows2)
          Check the 2 lists comparing the rows in order.
 List<RowMetaAndData> createData()
           
 List<RowMetaAndData> createResultData1()
          Create result data for test case 1.
 RowMetaInterface createRowMetaInterface()
           
 void testNullIf1()
          Test case for nullif 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

NullIfTest

public NullIfTest()
Method Detail

createRowMetaInterface

public RowMetaInterface createRowMetaInterface()

createData

public List<RowMetaAndData> createData()

createResultData1

public List<RowMetaAndData> createResultData1()
Create result data for test case 1.


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.


testNullIf1

public void testNullIf1()
                 throws Exception
Test case for nullif step. Injector step to a nullif step to a dummy step.

Throws:
Exception