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-release/3.0/testsrc/main/mondrian/test/ParentChildHierarchyTest.java#2 $
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
nl
 
Constructor Summary
ParentChildHierarchyTest(String name)
           
 
Method Summary
 void _testNonClosureParentChildHierarchy()
          Test case for bug #1708327
 void testAll()
           
 void testBar()
          Script from here.
 void testBug1459995()
          Testcase for bug 1459995, "NullPointerException in RolapEvaluator.setContext(....)".
 void testChildrenOfAll()
           
 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 testFoo()
          Script That Uses the LEAVES Flag to Return the Bottom 10 Dimension Members, from here.
 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 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, assertSize, assertThrows, cubeByName, execute, executeExpr, executeQuery, executeSingletonAxis, fold, genderMembersIncludingAll, getConnection, getDimensionWithName, getTestContext, getTestContext, getTestContext, isDefaultNullMemberRepresentation, isGroupingSetsSupported, member, productMembersPotScrubbersPotsAndPans, storeMembersCAAndOR, storeMembersUsaAndCanada, warehouseMembersCanadaMexicoUsa
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, 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(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()

testFoo

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


testBar

public void testBar()
Script from here.


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 Exception
Throws:
Exception

testParentChildDrillThroughWithContext

public void testParentChildDrillThroughWithContext()
                                            throws Exception
Throws:
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()

SourceForge.net_Logo