|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object junit.framework.Assert junit.framework.TestCase mondrian.test.FoodMartTestCase mondrian.test.ParentChildHierarchyTest
public class ParentChildHierarchyTest
Tests for parent-child hierarchies.
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(String name)
|
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ParentChildHierarchyTest(String name)
Method Detail |
---|
public void testSnowflakeClosure()
Test case for MONDRIAN-266, "Closure tables do not work in a Snowflake Dimension".
public void testSharedClosureParentChildHierarchy()
public void _testNonClosureParentChildHierarchy()
public void testAll()
public void testChildrenOfAll()
public void testDistinctAll()
public void testDistinctChildrenOfAll()
public void testDistinctSubtree()
public void testDistinctAllExplicitClosure()
public void testDistinctChildrenOfAllExplicitClosure()
public void testDistinctSubtreeExplicitClosure()
public void testLeaf()
public void testOneAboveLeaf()
public void testParentChildDescendantsLeavesBottom()
public void testParentChildDescendantsLeavesTop()
public void testAllMembersParent()
public void testHierarchyFalseCycle()
public void testGenuineCycle()
public void testParentChildDrillThrough()
public void testParentChildDrillThroughWithContext()
public void testBugMondrian168()
public void testParentChildOrdinal()
public void testLevelMembers()
public void testClosureTableInVirtualCube()
public void testClosureVsNoClosure()
public void testSchemaReaderLevelMembers()
public void testBridgeTable()
public void testPCCacheKeyBug() throws Exception
When nativizing a set which contained a PC hierarchy, the SqlTupleReader would ask the cache for the parent member of the member it was populating, but the members are only put in cache at the second phase of the tuple computation, once all the members have been populated from SQL. Now, the SqlTupleReader keeps an intermediate key->member map so it can construct PC hierarchies correctly. This map gets picked up by the GC as soon as the SQL result set reaches its end and the tuple reader is closed, so there are no added cost to this.
Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |