|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object junit.framework.Assert junit.framework.TestCase org.pentaho.di.trans.steps.tableinput.TableInputTest
public class TableInputTest
Test class for tableinput. 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.
Field Summary | |
---|---|
static String[] |
databasesXML
|
Constructor Summary | |
---|---|
TableInputTest()
|
Method Summary | |
---|---|
void |
checkRows(List<RowMetaAndData> rows1,
List<RowMetaAndData> rows2)
Check the 2 lists comparing the rows in order. |
List<RowMetaAndData> |
createDataRows()
Create the input rows used for a unit test. |
List<RowMetaAndData> |
createResultDataRows()
Create the result rows for a test. |
RowMetaInterface |
createRowMetaInterface()
|
RowMetaInterface |
createSourceRowMetaInterface()
|
void |
createTables(Database db)
Create source table. |
void |
testTableInputWithParam()
Test case for table input which is taking its input from a hop. |
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 |
---|
public static final String[] databasesXML
Constructor Detail |
---|
public TableInputTest()
Method Detail |
---|
public RowMetaInterface createSourceRowMetaInterface()
public void createTables(Database db) throws Exception
Exception
public RowMetaInterface createRowMetaInterface()
public List<RowMetaAndData> createDataRows()
public List<RowMetaAndData> createResultDataRows()
public void checkRows(List<RowMetaAndData> rows1, List<RowMetaAndData> rows2)
public void testTableInputWithParam() throws Exception
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |