org.pentaho.di.trans.steps.combinationlookup
Class CombinationLookupTest

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

public class CombinationLookupTest
extends junit.framework.TestCase

Test class for combination lookup/update. HSQL is used as database in memory to get an easy playground for database tests. H2 does not support all SQL features but it should proof enough for most of our tests.

Author:
Sven Boden

Field Summary
static String[] databasesXML
           
 
Constructor Summary
CombinationLookupTest()
           
 
Method Summary
 void checkResults(Database db)
          Check the results in the target dimension table.
 RowMetaInterface createSourceRowMetaInterface()
           
 void createTables(Database db)
          Create source and target table.
 RowMetaInterface createTargetRowMetaInterface()
           
 void testCombinationLookup()
          Test case for Combination lookup/update.
 
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
Constructor Detail

CombinationLookupTest

public CombinationLookupTest()
Method Detail

createTargetRowMetaInterface

public RowMetaInterface createTargetRowMetaInterface()

createSourceRowMetaInterface

public RowMetaInterface createSourceRowMetaInterface()

createTables

public void createTables(Database db)
                  throws Exception
Create source and target table.

Throws:
Exception

checkResults

public void checkResults(Database db)
                  throws Exception
Check the results in the target dimension table.

Parameters:
db - database to use.
Throws:
Exception

testCombinationLookup

public void testCombinationLookup()
                           throws Exception
Test case for Combination lookup/update.

Throws:
Exception