Package mondrian.olap.fun
Class PartialSortTest
- java.lang.Object
-
- TestCase
-
- mondrian.olap.fun.PartialSortTest
-
public class PartialSortTest extends TestCasePartialSortTestis a unit test for the partial-sort algorithmFunUtil.partialSort(T[], java.util.Comparator<T>, int), which supports MDX functions like TopCount and BottomCount. No MDX here; there are tests of TopCount etc in FunctionTest.- Since:
- Nov 2008
- Author:
- Marc Berkowitz
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static classPartialSortTest.Item
-
Constructor Summary
Constructors Constructor Description PartialSortTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidtestOnAlreadyReverseSorted()voidtestOnAlreadySorted()voidtestOnManyRandomIntegers()voidtestOnRandomIntegers()voidtestPredicate1()voidtestPredicate2()voidtestPredicateIsStablySorted()voidtestQuick()voidtestSpeed()voidtestStableOnRandomItems()voidtestStableQuick()
-
-
-
Field Detail
-
random
final Random random
-
-
Method Detail
-
testPredicate1
public void testPredicate1()
-
testPredicate2
public void testPredicate2()
-
testQuick
public void testQuick()
-
testOnAlreadySorted
public void testOnAlreadySorted()
-
testOnAlreadyReverseSorted
public void testOnAlreadyReverseSorted()
-
testOnRandomIntegers
public void testOnRandomIntegers()
-
testOnManyRandomIntegers
public void testOnManyRandomIntegers()
-
testPredicateIsStablySorted
public void testPredicateIsStablySorted()
-
testStableQuick
public void testStableQuick()
-
testStableOnRandomItems
public void testStableOnRandomItems()
-
testSpeed
public void testSpeed()
-
-