org.pentaho.di.trans.steps.sort
Class SortRowsTest

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

public class SortRowsTest
extends junit.framework.TestCase

Test class for the Sort step. TODO: ascii data case sensitive and case insensitive.

Author:
Sven Boden

Field Summary
static int MAX_COUNT
           
 
Constructor Summary
SortRowsTest()
           
 
Method Summary
 void checkRows(List<RowMetaAndData> rows, boolean ascending)
          Check the list, the list has to be sorted.
 List<RowMetaAndData> createIntegerData()
           
 RowMetaInterface createRowMetaInterface()
           
 void testSortRows1()
          Test case for sorting step ..
 void testSortRows2()
          Test case for sorting step ..
 
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

MAX_COUNT

public static int MAX_COUNT
Constructor Detail

SortRowsTest

public SortRowsTest()
Method Detail

createRowMetaInterface

public RowMetaInterface createRowMetaInterface()

createIntegerData

public List<RowMetaAndData> createIntegerData()

checkRows

public void checkRows(List<RowMetaAndData> rows,
                      boolean ascending)
               throws Exception
Check the list, the list has to be sorted.

Throws:
Exception

testSortRows1

public void testSortRows1()
                   throws Exception
Test case for sorting step .. ascending order on "numeric" data.

Throws:
Exception

testSortRows2

public void testSortRows2()
                   throws Exception
Test case for sorting step .. descending order on "numeric" data.

Throws:
Exception