|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
org.pentaho.di.trans.steps.detectlastrow.DetectLastRowStepTest
public class DetectLastRowStepTest
Test class for the Detect Last Row (also now as "Identify last row in stream) step.
| Constructor Summary | |
|---|---|
DetectLastRowStepTest()
|
|
| Method Summary | |
|---|---|
void |
checkRows(List<RowMetaAndData> rows1,
List<RowMetaAndData> rows2)
Check the 2 lists comparing the rows in order. |
List<RowMetaAndData> |
createData(int nrRows)
Create data rows. |
List<RowMetaAndData> |
createResultData(int nrRows)
Create result data rows. |
RowMetaInterface |
createResultRowMetaInterface()
|
RowMetaInterface |
createRowMetaInterface()
|
void |
detectLastRowStepTest(int nrRows)
Test case Detect Last Row step. |
void |
testDetectLastRowStep0()
Test with 0 rows |
void |
testDetectLastRowStep1()
Test with 1 rows |
void |
testDetectLastRowStep2()
Test with 2 rows |
void |
testDetectLastRowStep3()
Test with 3 rows |
| 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 |
| Constructor Detail |
|---|
public DetectLastRowStepTest()
| Method Detail |
|---|
public RowMetaInterface createRowMetaInterface()
public List<RowMetaAndData> createData(int nrRows)
nrRows - nr of rows to insert (from 0 to 3 for the moment)
public RowMetaInterface createResultRowMetaInterface()
public List<RowMetaAndData> createResultData(int nrRows)
nrRows - nr of rows to insert (from 0 to 3 for the moment)
public void checkRows(List<RowMetaAndData> rows1,
List<RowMetaAndData> rows2)
rows1 - first row set to comparerows2 - second row set to compare
public void detectLastRowStepTest(int nrRows)
throws Exception
nrRows - Number of rows to test.
Exception - upon any exception
public void testDetectLastRowStep0()
throws Exception
Exception - Upon any error.
public void testDetectLastRowStep1()
throws Exception
Exception - Upon any error.
public void testDetectLastRowStep2()
throws Exception
Exception - Upon any error.
public void testDetectLastRowStep3()
throws Exception
Exception - Upon any error.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||