mondrian.test
Class ParentChildHierarchyTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by mondrian.test.FoodMartTestCase
              extended by mondrian.test.ParentChildHierarchyTest
All Implemented Interfaces:
Test

public class ParentChildHierarchyTest
extends FoodMartTestCase

ParentChildHierarchyTest tests parent-child hierarchies.

Since:
Mar 6, 2003
Version:
$Id: //open/mondrian/testsrc/main/mondrian/test/ParentChildHierarchyTest.java#51 $
Author:
jhyde

Nested Class Summary
 
Nested classes/interfaces inherited from class mondrian.test.FoodMartTestCase
FoodMartTestCase.QueryAndResult
 
Field Summary
 
Fields inherited from class mondrian.test.FoodMartTestCase
propSaver
 
Constructor Summary
ParentChildHierarchyTest(java.lang.String name)
           
 
Method Summary
 void _testNonClosureParentChildHierarchy()
          Test case for bug #1708327
 void testAll()
           
 void testAllMembersParent()
           
 void testBug1459995()
          Testcase for bug 1459995, "NullPointerException in RolapEvaluator.setContext(....)".
 void testChildrenOfAll()
           
 void testClosureTableInVirtualCube()
          test case for bug #2477623, Closure Tables not working with Virtual Cubes
 void testClosureVsNoClosure()
          Verifies the fix for MONDRIAN-519, a class cast exception when using non-closure parent child hierarchies.
 void testDistinctAll()
           
 void testDistinctAllExplicitClosure()
          Verifies that COUNT DISTINCT works against the explict closure of the parent/child hierarchy.
 void testDistinctChildrenOfAll()
           
 void testDistinctChildrenOfAllExplicitClosure()
           
 void testDistinctSubtree()
           
 void testDistinctSubtreeExplicitClosure()
           
 void testGenuineCycle()
           
 void testHierarchyFalseCycle()
          The recursion cyclicity check kicks in when the recursion depth reachs the number of dimensions in the cube.
 void testLeaf()
           
 void testLevelMembers()
           
 void testOneAboveLeaf()
           
 void testParentChildDescendantsLeavesBottom()
          Script That Uses the LEAVES Flag to Return the Bottom 10 Dimension Members, from here.
 void testParentChildDescendantsLeavesTop()
          Script from here.
 void testParentChildDrillThrough()
           
 void testParentChildDrillThroughWithContext()
           
 void testParentChildOrdinal()
          Tests that a parent-child hierarchy is sorted correctly if the "ordinalColumn" attribute is included in its definition.
 void testSharedClosureParentChildHierarchy()
           
 void testSnowflakeClosure()
          Tests snow flake closure combination.
 
Methods inherited from class mondrian.test.FoodMartTestCase
allMember, assertAxisReturns, assertAxisThrows, assertBooleanExprReturns, assertExprReturns, assertExprThrows, assertQueriesReturnSimilarResults, assertQueryReturns, assertQueryThrows, assertSize, cubeByName, execute, executeExpr, executeQuery, executeSingletonAxis, genderMembersIncludingAll, getConnection, getDimensionWithName, getTestContext, getTestContext, isDefaultNullMemberRepresentation, isGroupingSetsSupported, member, productMembersPotScrubbersPotsAndPans, storeMembersCAAndOR, storeMembersUsaAndCanada, tearDown, warehouseMembersCanadaMexicoUsa
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ParentChildHierarchyTest

public ParentChildHierarchyTest(java.lang.String name)
Method Detail

testSnowflakeClosure

public void testSnowflakeClosure()
Tests snow flake closure combination. bug #1675125 - now fixed.


testSharedClosureParentChildHierarchy

public void testSharedClosureParentChildHierarchy()

_testNonClosureParentChildHierarchy

public void _testNonClosureParentChildHierarchy()
Test case for bug #1708327


testAll

public void testAll()

testChildrenOfAll

public void testChildrenOfAll()

testDistinctAll

public void testDistinctAll()

testDistinctChildrenOfAll

public void testDistinctChildrenOfAll()

testDistinctSubtree

public void testDistinctSubtree()

testDistinctAllExplicitClosure

public void testDistinctAllExplicitClosure()
Verifies that COUNT DISTINCT works against the explict closure of the parent/child hierarchy. (Repeats the last 4 tests.)


testDistinctChildrenOfAllExplicitClosure

public void testDistinctChildrenOfAllExplicitClosure()

testDistinctSubtreeExplicitClosure

public void testDistinctSubtreeExplicitClosure()

testLeaf

public void testLeaf()

testOneAboveLeaf

public void testOneAboveLeaf()

testParentChildDescendantsLeavesBottom

public void testParentChildDescendantsLeavesBottom()
Script That Uses the LEAVES Flag to Return the Bottom 10 Dimension Members, from here.


testParentChildDescendantsLeavesTop

public void testParentChildDescendantsLeavesTop()
Script from here.


testAllMembersParent

public void testAllMembersParent()

testHierarchyFalseCycle

public void testHierarchyFalseCycle()
The recursion cyclicity check kicks in when the recursion depth reachs the number of dimensions in the cube. So create a cube with fewer dimensions (3) than the depth of the emp dimension (6).


testGenuineCycle

public void testGenuineCycle()

testParentChildDrillThrough

public void testParentChildDrillThrough()
                                 throws java.lang.Exception
Throws:
java.lang.Exception

testParentChildDrillThroughWithContext

public void testParentChildDrillThroughWithContext()
                                            throws java.lang.Exception
Throws:
java.lang.Exception

testBug1459995

public void testBug1459995()
Testcase for bug 1459995, "NullPointerException in RolapEvaluator.setContext(....)".


testParentChildOrdinal

public void testParentChildOrdinal()
Tests that a parent-child hierarchy is sorted correctly if the "ordinalColumn" attribute is included in its definition. Testcase for bug 1522608, "Sorting of Parent/Child Hierarchy is wrong".


testLevelMembers

public void testLevelMembers()

testClosureTableInVirtualCube

public void testClosureTableInVirtualCube()
test case for bug #2477623, Closure Tables not working with Virtual Cubes


testClosureVsNoClosure

public void testClosureVsNoClosure()
Verifies the fix for MONDRIAN-519, a class cast exception when using non-closure parent child hierarchies.


Get Mondrian at SourceForge.net. Fast, secure and free Open Source software downloads