|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.pentaho.di.trans.steps.execsqlrow.ExecSQLRowTest
public class ExecSQLRowTest
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 | |
---|---|
ExecSQLRowTest()
|
Method Summary | |
---|---|
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 |
testExecSQLRow1()
Basic Test case for Exec SQL Row. |
void |
testExecSQLRow2()
Basic Test case for Exec SQL Row. |
void |
testExecSQLRow3()
Basic Test case for Exec SQL Row. |
void |
testExecSQLRow4()
Basic Test case for Exec SQL Row. |
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 ExecSQLRowTest()
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 testExecSQLRow1() throws Exception
Exception
public void testExecSQLRow2() throws Exception
Exception
public void testExecSQLRow3() throws Exception
Exception
public void testExecSQLRow4() throws Exception
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |