org.pentaho.di.trans.steps.update
Class UpdateTest

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

public class UpdateTest
extends junit.framework.TestCase


Field Summary
static String[] databasesXML
           
 Database db
           
 RowStepCollector rc
           
 RowProducer rp
           
static String TARGET_TABLE
           
 UpdateMeta upd
           
 
Constructor Summary
UpdateTest()
           
 
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 testUpdateBetweenSkip()
           
 void testUpdateEquals()
           
 void testUpdateEqualsSkip()
           
 void testUpdateEqualsSupportsNull()
           
 void testUpdateEqualsSupportsNullSkip()
           
 void testUpdateEqualsSupportsNullTwoKeys()
           
 void testUpdateEqualsSupportsNullTwoKeysMixed()
           
 void testUpdateEqualsSupportsNullTwoKeysMixed2()
           
 void testUpdateEqualsSupportsNullTwoKeysMixed2Skip()
           
 void testUpdateEqualsSupportsNullTwoKeysMixedSkip()
           
 void testUpdateEqualsSupportsNullTwoKeysSkip()
           
 void testUpdateEqualsTwoKeys()
           
 void testUpdateEqualsTwoKeysSkip()
           
 void testUpdateIsNotNull()
           
 void testUpdateIsNotNullSkip()
           
 void testUpdateIsNull()
           
 void testUpdateIsNullSkip()
           
 
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

upd

public UpdateMeta upd

rc

public RowStepCollector rc

rp

public RowProducer rp

db

public Database db
Constructor Detail

UpdateTest

public UpdateTest()
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

testUpdateEqualsSkip

public void testUpdateEqualsSkip()
                          throws Exception
Throws:
Exception

testUpdateEqualsTwoKeys

public void testUpdateEqualsTwoKeys()
                             throws Exception
Throws:
Exception

testUpdateEqualsTwoKeysSkip

public void testUpdateEqualsTwoKeysSkip()
                                 throws Exception
Throws:
Exception

testUpdateEqualsSupportsNull

public void testUpdateEqualsSupportsNull()
                                  throws Exception
Throws:
Exception

testUpdateEqualsSupportsNullSkip

public void testUpdateEqualsSupportsNullSkip()
                                      throws Exception
Throws:
Exception

testUpdateEqualsSupportsNullTwoKeys

public void testUpdateEqualsSupportsNullTwoKeys()
                                         throws Exception
Throws:
Exception

testUpdateEqualsSupportsNullTwoKeysSkip

public void testUpdateEqualsSupportsNullTwoKeysSkip()
                                             throws Exception
Throws:
Exception

testUpdateEqualsSupportsNullTwoKeysMixed

public void testUpdateEqualsSupportsNullTwoKeysMixed()
                                              throws Exception
Throws:
Exception

testUpdateEqualsSupportsNullTwoKeysMixedSkip

public void testUpdateEqualsSupportsNullTwoKeysMixedSkip()
                                                  throws Exception
Throws:
Exception

testUpdateIsNull

public void testUpdateIsNull()
                      throws Exception
Throws:
Exception

testUpdateIsNullSkip

public void testUpdateIsNullSkip()
                          throws Exception
Throws:
Exception

testUpdateIsNotNull

public void testUpdateIsNotNull()
                         throws Exception
Throws:
Exception

testUpdateIsNotNullSkip

public void testUpdateIsNotNullSkip()
                             throws Exception
Throws:
Exception

testUpdateBetween

public void testUpdateBetween()
                       throws Exception
Throws:
Exception

testUpdateBetweenSkip

public void testUpdateBetweenSkip()
                           throws Exception
Throws:
Exception

testUpdateEqualsSupportsNullTwoKeysMixed2

public void testUpdateEqualsSupportsNullTwoKeysMixed2()
                                               throws Exception
Throws:
Exception

testUpdateEqualsSupportsNullTwoKeysMixed2Skip

public void testUpdateEqualsSupportsNullTwoKeysMixed2Skip()
                                                   throws Exception
Throws:
Exception