|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.pentaho.di.trans.steps.databaselookup.DatabaseLookupTest
public class DatabaseLookupTest
Test class for database lookup. H2 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. Still to do: - cache testing. - Do not pass rows functionality/eat rows on failed lookup - Fail on multiple rows - Order by - Different comparators
Field Summary | |
---|---|
static String[] |
databasesXML
|
static LoggingObjectInterface |
loggingObject
|
Constructor Summary | |
---|---|
DatabaseLookupTest()
|
Method Summary | |
---|---|
void |
basicDatabaseLookup()
Basic Test case for database lookup. |
void |
CacheAndLoadAllRowsDatabaseLookup()
Test "Load All Rows" version of BasicDatabaseLookup test. |
void |
checkRows(List<RowMetaAndData> rows1,
List<RowMetaAndData> rows2)
Check the 2 lists comparing the rows in order. |
static void |
createDatabase()
|
List<RowMetaAndData> |
createDataRows()
Create the input rows used for a unit test. |
List<RowMetaAndData> |
createResultDataRows()
Create the result rows for a test. |
RowMetaInterface |
createResultRowMetaInterface()
|
RowMetaInterface |
createRowMetaInterface()
|
static RowMetaInterface |
createSourceRowMetaInterface()
|
static void |
createTables(Database db)
Create source table. |
void |
NOTCachedAndLoadAllRowsDatabaseLookup()
Test with cache turned off but "Load All Rows" enabled (Load all rows should have no effect) See JIRA PDI-1910 |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final LoggingObjectInterface loggingObject
public static final String[] databasesXML
Constructor Detail |
---|
public DatabaseLookupTest()
Method Detail |
---|
public static RowMetaInterface createSourceRowMetaInterface()
public static void createTables(Database db) throws Exception
Exception
public RowMetaInterface createRowMetaInterface()
public List<RowMetaAndData> createDataRows()
public RowMetaInterface createResultRowMetaInterface()
public List<RowMetaAndData> createResultDataRows()
public void checkRows(List<RowMetaAndData> rows1, List<RowMetaAndData> rows2)
public static void createDatabase() throws Exception
Exception
public void basicDatabaseLookup() throws Exception
Exception
public void CacheAndLoadAllRowsDatabaseLookup() throws Exception
Exception
public void NOTCachedAndLoadAllRowsDatabaseLookup() throws Exception
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |