org.pentaho.di.trans.steps.insertupdate
Class InsertUpdateTest

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

public class InsertUpdateTest
extends junit.framework.TestCase


Field Summary
static String[] databasesXML
           
 Database db
           
 InsertUpdateMeta insupd
           
 RowStepCollector rc
           
 RowProducer rp
           
static String TARGET_TABLE
           
 
Constructor Summary
InsertUpdateTest()
           
 
Method Summary
 void addLookup(String[] def)
           
 List<RowMetaAndData> createMatchingDataRows()
           
 String[] getDbRows()
           
 RowMetaInterface getTargetTableRowMeta()
           
 void pumpMatchingRows()
           
 void pumpRows(List<RowMetaAndData> inputList)
           
 void setUp()
           
 void tearDown()
           
 void testUpdateBetween()
           
 void testUpdateEquals()
           
 void testUpdateEqualsSupportsNull()
           
 void testUpdateEqualsSupportsNullTwoKeys()
           
 void testUpdateEqualsSupportsNullTwoKeysMixed()
           
 void testUpdateEqualsSupportsNullTwoKeysMixed2()
           
 void testUpdateEqualsTwoKeys()
           
 void testUpdateIsNotNull()
           
 void testUpdateIsNull()
           
 
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
 

Field Detail

databasesXML

public static final String[] databasesXML

TARGET_TABLE

public static final String TARGET_TABLE
See Also:
Constant Field Values

insupd

public InsertUpdateMeta insupd

rc

public RowStepCollector rc

rp

public RowProducer rp

db

public Database db
Constructor Detail

InsertUpdateTest

public InsertUpdateTest()
Method Detail

getTargetTableRowMeta

public RowMetaInterface getTargetTableRowMeta()

addLookup

public void addLookup(String[] def)

setUp

public void setUp()
           throws Exception
Overrides:
setUp in class junit.framework.TestCase
Throws:
Exception

tearDown

public void tearDown()
              throws Exception
Overrides:
tearDown in class junit.framework.TestCase
Throws:
Exception

createMatchingDataRows

public List<RowMetaAndData> createMatchingDataRows()

pumpMatchingRows

public void pumpMatchingRows()
                      throws Exception
Throws:
Exception

pumpRows

public void pumpRows(List<RowMetaAndData> inputList)
              throws Exception
Throws:
Exception

getDbRows

public String[] getDbRows()
                   throws Exception
Throws:
Exception

testUpdateEquals

public void testUpdateEquals()
                      throws Exception
Throws:
Exception

testUpdateEqualsTwoKeys

public void testUpdateEqualsTwoKeys()
                             throws Exception
Throws:
Exception

testUpdateEqualsSupportsNull

public void testUpdateEqualsSupportsNull()
                                  throws Exception
Throws:
Exception

testUpdateEqualsSupportsNullTwoKeys

public void testUpdateEqualsSupportsNullTwoKeys()
                                         throws Exception
Throws:
Exception

testUpdateEqualsSupportsNullTwoKeysMixed

public void testUpdateEqualsSupportsNullTwoKeysMixed()
                                              throws Exception
Throws:
Exception

testUpdateIsNull

public void testUpdateIsNull()
                      throws Exception
Throws:
Exception

testUpdateIsNotNull

public void testUpdateIsNotNull()
                         throws Exception
Throws:
Exception

testUpdateBetween

public void testUpdateBetween()
                       throws Exception
Throws:
Exception

testUpdateEqualsSupportsNullTwoKeysMixed2

public void testUpdateEqualsSupportsNullTwoKeysMixed2()
                                               throws Exception
Throws:
Exception