|
||||||||||
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.splitfieldtorows.SplitFieldToRowsTest
public class SplitFieldToRowsTest
Test class for the SplitFieldToRows step. The expected results were obtained by running the "Split field To Rows" Kettle step with Spoon 4.3.0.
Constructor Summary | |
---|---|
SplitFieldToRowsTest()
|
Method Summary | |
---|---|
List<RowMetaAndData> |
createData(String value)
Create a list of RowMetaAndData from the passed value and returns it. |
RowMetaInterface |
createRowMetaInterface()
Creates the row meta interface. |
List<RowMetaAndData> |
splitFieldToRows(String testName,
String stringToSplit,
boolean isDelimiterRegex,
String delimiter)
Splits the "stringToSplit" with the passed "delimiter". |
List<RowMetaAndData> |
splitFieldToRows(String testName,
String stringToSplit,
boolean isDelimiterRegex,
String delimiter,
String delimiterVariableValue)
Splits the "stringToSplit" with the passed "delimiter". |
List<RowMetaAndData> |
test(String testName,
String stringToSplit,
boolean isDelimiterRegex,
String delimiter,
String[] expectedResult)
Execute a test with the passed parameters. |
List<RowMetaAndData> |
test(String testName,
String stringToSplit,
boolean isDelimiterRegex,
String delimiter,
String delimiterVariableValue,
String[] expectedResult)
Execute a test with the passed parameters. |
void |
testNonRegex1()
Test: Non regex, delimiter = ";" |
void |
testNonRegex2()
Test: Non regex, delimiter = "!;" |
void |
testNonRegex3()
Test: Non regex, delimiter = ";", "!" appears in field. |
void |
testNonRegex4()
Test: Non regex, delimiter = "." |
void |
testNonRegex5()
Test: Non regex, delimiter = "\\.", delmiter "." appears in field. |
void |
testNonRegex6()
Test: Non regex, delimiter = "${DELIMITER}, value of delimiter = ";" |
void |
testRegex1()
Test: Regex test, delimiter = ";" |
void |
testRegex2()
Test: Regex, delimiter = "!;" |
void |
testRegex3()
Test: Regex, delimiter = ";", "!;" appears in the field. |
void |
testRegex4()
Test: Regex, delimiter = "." |
void |
testRegex5()
Test: Regex, delimiter = "\\." |
void |
testRegex6()
Test: Regex, delimiter = "[0-9]" |
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 SplitFieldToRowsTest()
Method Detail |
---|
public RowMetaInterface createRowMetaInterface()
public List<RowMetaAndData> createData(String value)
value
-
public List<RowMetaAndData> test(String testName, String stringToSplit, boolean isDelimiterRegex, String delimiter, String delimiterVariableValue, String[] expectedResult) throws Exception
testName
- stringToSplit
- isDelimiterRegex
- delimiter
- delimiterVariableValue
- expectedResult
-
Exception
public List<RowMetaAndData> test(String testName, String stringToSplit, boolean isDelimiterRegex, String delimiter, String[] expectedResult) throws Exception
testName
- stringToSplit
- isDelimiterRegex
- delimiter
- expectedResult
-
Exception
public void testNonRegex1() throws Exception
Exception
public void testNonRegex2() throws Exception
Exception
public void testNonRegex3() throws Exception
Exception
public void testNonRegex4() throws Exception
Exception
public void testNonRegex5() throws Exception
Exception
public void testNonRegex6() throws Exception
Exception
public void testRegex1() throws Exception
Exception
public void testRegex2() throws Exception
Exception
public void testRegex3() throws Exception
Exception
public void testRegex4() throws Exception
Exception
public void testRegex5() throws Exception
Exception
public void testRegex6() throws Exception
Exception
public List<RowMetaAndData> splitFieldToRows(String testName, String stringToSplit, boolean isDelimiterRegex, String delimiter) throws Exception
testName
- stringToSplit
- isDelimiterRegex
- delimiter
-
Exception
public List<RowMetaAndData> splitFieldToRows(String testName, String stringToSplit, boolean isDelimiterRegex, String delimiter, String delimiterVariableValue) throws Exception
testName
- stringToSplit
- isDelimiterRegex
- delimiter
- delimiterVariableValue
-
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |