org.pentaho.di.trans.steps.stringcut
Class StringCutTest

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

public class StringCutTest
extends TransformationTestCase

Test class for the StringCut step.

Author:
Matt Burgess

Constructor Summary
StringCutTest()
           
 
Method Summary
 List<RowMetaAndData> createData1()
          Create data rows.
 List<RowMetaAndData> createResultData1()
           
 List<RowMetaAndData> createResultData2()
           
 RowMetaInterface createResultRowMetaInterface1()
           
 RowMetaInterface createResultRowMetaInterface2()
           
 RowMetaInterface createRowMetaInterface()
           
 void testStringCut1()
          This is a test for PDI-8042, where the first row of meta has no output field but the second does.
 void testStringCut2()
          This is a generic test using two input fields and different cuts for each
 
Methods inherited from class org.pentaho.di.trans.TransformationTestCase
checkRows, createData, createRowMetaInterface
 
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

StringCutTest

public StringCutTest()
              throws KettleException
Throws:
KettleException
Method Detail

createRowMetaInterface

public RowMetaInterface createRowMetaInterface()

createResultRowMetaInterface1

public RowMetaInterface createResultRowMetaInterface1()

createResultRowMetaInterface2

public RowMetaInterface createResultRowMetaInterface2()

createData1

public List<RowMetaAndData> createData1()
Create data rows.

Parameters:
nrRows - nr of rows to insert (from 0 to 3 for the moment)
Returns:
List of row and meta data

createResultData1

public List<RowMetaAndData> createResultData1()

createResultData2

public List<RowMetaAndData> createResultData2()

testStringCut1

public void testStringCut1()
                    throws KettleException
This is a test for PDI-8042, where the first row of meta has no output field but the second does.

Throws:
KettleException

testStringCut2

public void testStringCut2()
                    throws KettleException
This is a generic test using two input fields and different cuts for each

Throws:
KettleException