org.pentaho.di.trans.steps.getxmldata
Class GetXMLDataTest

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

public class GetXMLDataTest
extends junit.framework.TestCase

Test class for the "Get XML Data" step.

Author:
Sven Boden

Constructor Summary
GetXMLDataTest()
           
 
Method Summary
 void checkRows(List<RowMetaAndData> rows1, List<RowMetaAndData> rows2)
          Check the 2 lists comparing the rows in order.
 List<RowMetaAndData> createData()
           
 List<RowMetaAndData> createResultData1()
          Create result data for test case 1.
 RowMetaInterface createResultRowMetaInterface()
           
 RowMetaInterface createRowMetaInterface()
           
 void testGetXMLDataSimple1()
          Test case for Get XML Data step, very simple example.
 
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

GetXMLDataTest

public GetXMLDataTest()
Method Detail

createRowMetaInterface

public RowMetaInterface createRowMetaInterface()

createData

public List<RowMetaAndData> createData()

createResultRowMetaInterface

public RowMetaInterface createResultRowMetaInterface()

createResultData1

public List<RowMetaAndData> createResultData1()
Create result data for test case 1.

Returns:
list of metadata/data couples of how the result should look like.

checkRows

public void checkRows(List<RowMetaAndData> rows1,
                      List<RowMetaAndData> rows2)
Check the 2 lists comparing the rows in order. If they are not the same fail the test.

Parameters:
rows1 - set 1 of rows to compare
rows2 - set 2 of rows to compare

testGetXMLDataSimple1

public void testGetXMLDataSimple1()
                           throws Exception
Test case for Get XML Data step, very simple example.

Throws:
Exception - Upon any exception