mondrian.rolap.agg
Class AggregationOnDistinctCountMeasuresTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by mondrian.test.FoodMartTestCase
              extended by mondrian.rolap.BatchTestCase
                  extended by mondrian.rolap.agg.AggregationOnDistinctCountMeasuresTest
All Implemented Interfaces:
Test

public class AggregationOnDistinctCountMeasuresTest
extends BatchTestCase

AggregationOnDistinctCountMeasureTest tests the Distinct Count functionality with tuples and members.

Since:
19 December, 2007
Version:
$Id: //open/mondrian/testsrc/main/mondrian/rolap/agg/AggregationOnDistinctCountMeasuresTest.java#32 $
Author:
ajogleka

Nested Class Summary
 
Nested classes/interfaces inherited from class mondrian.rolap.BatchTestCase
BatchTestCase.TestCase
 
Field Summary
 
Fields inherited from class mondrian.rolap.BatchTestCase
cubeNameSales, fieldGender, fieldProductDepartment, fieldProductFamily, fieldValueProductDepartment, fieldValuesGender, fieldValuesProductFamily, fieldValuesYear, fieldYear, measureUnitSales, tableCustomer, tableProductClass, tableTime
 
Fields inherited from class mondrian.test.FoodMartTestCase
propSaver
 
Constructor Summary
AggregationOnDistinctCountMeasuresTest()
           
 
Method Summary
 TestContext getTestContext()
          Returns the test context.
protected  void setUp()
           
 void testAggregatesAtTheSameLevelForNormalAndDistinctCountMeasure()
           
 void testAggregationListOptimizationForChildren()
           
 void testAggregationOfMembersAndDefaultMemberWithoutGroupingSets()
           
 void testAggregationOnCJofMembersGeneratesOptimalQuery()
           
 void testAggregationOverLargeListGeneratesError()
           
 void testCanNotBatchForDifferentCompoundPredicate()
           
 void testCrossJoinMembersWithASingleMember()
           
 void testCrossJoinMembersWithSetOfMembers()
           
 void testCrossJoinOfAllMembers()
           
 void testCrossJoinOfJoiningAndNonJoiningDimension()
           
 void testCrossJoinOfJoiningAndNonJoiningDimensionWithAllMember()
           
 void testCrossJoinParticularMembersFromTwoDimensions()
           
 void testDistinctCountForAggregatesAtTheSameLevel()
           
 void testDistinctCountInNonGroupingSetsQuery()
          Test distinct count agg happens in non gs query for subset of members with mixed measures.
 void testDistinctCountOnMembersWithNonJoiningDimensionNotAtAllLevel()
           
 void testDistinctCountOnSetOfMembers()
           
 void testDistinctCountOnSetOfMembersFromOneDimension()
           
 void testDistinctCountOnTuplesWithSomeNonJoiningDimensions()
           
 void testDistinctCountWithAMeasureAsPartOfTuple()
           
 void testMemberCountIsNotSameForAllMembersInTuple()
           
 void testMemberCountIsSameForAllMembersInTuple()
           
 void testMultiLevelMembersMixedNullNonNullParent()
           
 void testMultiLevelMembersNullParents()
           
 void testMultiLevelsMixedNullNonNullChild()
           
 void testNonJoiningDimensionWithAllMember()
           
 void testOptimizeChildren()
           
 void testOptimizeChildrenForTuplesWithLength1()
           
 void testOptimizeChildrenForTuplesWithLength3()
           
 void testOptimizeChildrenWhenTuplesAreFormedWithDifferentLevels()
           
 void testOptimizeListWhenTuplesAreFormedWithDifferentLevels()
           
 void testOptimizeListWithTuplesOfLength3()
           
 void testShouldConvertListOfMembersToTuples()
           
 void testShouldNotRemoveDuplicateTuples()
           
 void testTupleWithAllLevelMembersOnly()
           
 void testWhetherCJOfChildren()
           
 
Methods inherited from class mondrian.rolap.BatchTestCase
assertNative, assertNoQuerySql, assertNotNative, assertQuerySql, assertQuerySql, assertQuerySql, assertQuerySqlOrNot, checkNative, checkNative, checkNative, checkNotNative, checkNotNative, checkNotNative, createBatch, createBatch, dialectize, executeQuery, getCube, getFoodMartConnection, getGroupingSet, getMeasure
 
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, isDefaultNullMemberRepresentation, isGroupingSetsSupported, member, productMembersPotScrubbersPotsAndPans, storeMembersCAAndOR, storeMembersUsaAndCanada, tearDown, warehouseMembersCanadaMexicoUsa
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AggregationOnDistinctCountMeasuresTest

public AggregationOnDistinctCountMeasuresTest()
Method Detail

setUp

protected void setUp()
              throws Exception
Overrides:
setUp in class TestCase
Throws:
Exception

getTestContext

public TestContext getTestContext()
Description copied from class: FoodMartTestCase
Returns the test context. Override this method if you wish to use a different source for your FoodMart connection.

Overrides:
getTestContext in class FoodMartTestCase

testTupleWithAllLevelMembersOnly

public void testTupleWithAllLevelMembersOnly()

testCrossJoinOfAllMembers

public void testCrossJoinOfAllMembers()

testCrossJoinMembersWithASingleMember

public void testCrossJoinMembersWithASingleMember()

testCrossJoinMembersWithSetOfMembers

public void testCrossJoinMembersWithSetOfMembers()

testCrossJoinParticularMembersFromTwoDimensions

public void testCrossJoinParticularMembersFromTwoDimensions()

testDistinctCountOnSetOfMembersFromOneDimension

public void testDistinctCountOnSetOfMembersFromOneDimension()

testDistinctCountWithAMeasureAsPartOfTuple

public void testDistinctCountWithAMeasureAsPartOfTuple()

testDistinctCountOnSetOfMembers

public void testDistinctCountOnSetOfMembers()

testDistinctCountOnTuplesWithSomeNonJoiningDimensions

public void testDistinctCountOnTuplesWithSomeNonJoiningDimensions()

testAggregationListOptimizationForChildren

public void testAggregationListOptimizationForChildren()

testDistinctCountOnMembersWithNonJoiningDimensionNotAtAllLevel

public void testDistinctCountOnMembersWithNonJoiningDimensionNotAtAllLevel()

testNonJoiningDimensionWithAllMember

public void testNonJoiningDimensionWithAllMember()

testCrossJoinOfJoiningAndNonJoiningDimensionWithAllMember

public void testCrossJoinOfJoiningAndNonJoiningDimensionWithAllMember()

testCrossJoinOfJoiningAndNonJoiningDimension

public void testCrossJoinOfJoiningAndNonJoiningDimension()

testAggregationOverLargeListGeneratesError

public void testAggregationOverLargeListGeneratesError()

testMultiLevelMembersNullParents

public void testMultiLevelMembersNullParents()

testMultiLevelMembersMixedNullNonNullParent

public void testMultiLevelMembersMixedNullNonNullParent()

testMultiLevelsMixedNullNonNullChild

public void testMultiLevelsMixedNullNonNullChild()

testAggregationOnCJofMembersGeneratesOptimalQuery

public void testAggregationOnCJofMembersGeneratesOptimalQuery()

testCanNotBatchForDifferentCompoundPredicate

public void testCanNotBatchForDifferentCompoundPredicate()

testDistinctCountInNonGroupingSetsQuery

public void testDistinctCountInNonGroupingSetsQuery()
Test distinct count agg happens in non gs query for subset of members with mixed measures.


testAggregationOfMembersAndDefaultMemberWithoutGroupingSets

public void testAggregationOfMembersAndDefaultMemberWithoutGroupingSets()

testShouldConvertListOfMembersToTuples

public void testShouldConvertListOfMembersToTuples()

testOptimizeChildren

public void testOptimizeChildren()

testOptimizeListWhenTuplesAreFormedWithDifferentLevels

public void testOptimizeListWhenTuplesAreFormedWithDifferentLevels()

testOptimizeListWithTuplesOfLength3

public void testOptimizeListWithTuplesOfLength3()

testOptimizeChildrenForTuplesWithLength1

public void testOptimizeChildrenForTuplesWithLength1()

testOptimizeChildrenForTuplesWithLength3

public void testOptimizeChildrenForTuplesWithLength3()

testOptimizeChildrenWhenTuplesAreFormedWithDifferentLevels

public void testOptimizeChildrenWhenTuplesAreFormedWithDifferentLevels()

testWhetherCJOfChildren

public void testWhetherCJOfChildren()

testShouldNotRemoveDuplicateTuples

public void testShouldNotRemoveDuplicateTuples()

testMemberCountIsSameForAllMembersInTuple

public void testMemberCountIsSameForAllMembersInTuple()

testMemberCountIsNotSameForAllMembersInTuple

public void testMemberCountIsNotSameForAllMembersInTuple()

testAggregatesAtTheSameLevelForNormalAndDistinctCountMeasure

public void testAggregatesAtTheSameLevelForNormalAndDistinctCountMeasure()

testDistinctCountForAggregatesAtTheSameLevel

public void testDistinctCountForAggregatesAtTheSameLevel()

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