mondrian.test
Class IgnoreMeasureForNonJoiningDimensionInAggregationTest

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

public class IgnoreMeasureForNonJoiningDimensionInAggregationTest
extends FoodMartTestCase

Test ignoring of measure when unrelated Dimension is in aggregation list when IgnoreMeasureForNonJoiningDimension property is set to true.

Since:
Dec 12, 2007
Version:
$Id: //open/mondrian/testsrc/main/mondrian/test/IgnoreMeasureForNonJoiningDimensionInAggregationTest.java#10 $
Author:
ajoglekar

Nested Class Summary
 
Nested classes/interfaces inherited from class mondrian.test.FoodMartTestCase
FoodMartTestCase.QueryAndResult
 
Field Summary
(package private)  boolean originalEliminateUnrelatedDimensions
           
(package private)  boolean originalNonEmptyFlag
           
 
Fields inherited from class mondrian.test.FoodMartTestCase
propSaver
 
Constructor Summary
IgnoreMeasureForNonJoiningDimensionInAggregationTest()
           
 
Method Summary
protected  void setUp()
           
protected  void tearDown()
           
 void testGetMeasureCubeForCalcMeasureDoesNotThrowCastException()
           
 void testNonJoiningDimAtMemberValueCalcMultipleScenarios()
           
 void testNonJoiningDimAtTupleValueCalcMultipleScenarios()
           
 void testNonJoiningDimForAMemberDefinedOnJoiningDim()
           
 void testNonJoiningDimsWhenAggFunctionIsUsedOrNotUsed()
           
 void testNonJoiningDimWithNumericIif()
           
 void testNoTotalForMeasureWithCrossJoinOfJoiningAndNonJoiningDims()
           
 void testNoTotalsForCompdMeasureWithComponentsHavingNonJoiningDims()
           
 void testNoTotalsForCompoundMeasureWithNonJoiningDimAtAllLevel()
           
 void testShouldNotTotalAMeasureWithANonJoiningDimension()
           
 void testShouldTotalAMeasureWithAllJoiningDimensions()
           
 
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, 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
 

Field Detail

originalNonEmptyFlag

boolean originalNonEmptyFlag

originalEliminateUnrelatedDimensions

boolean originalEliminateUnrelatedDimensions
Constructor Detail

IgnoreMeasureForNonJoiningDimensionInAggregationTest

public IgnoreMeasureForNonJoiningDimensionInAggregationTest()
Method Detail

setUp

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

tearDown

protected void tearDown()
                 throws Exception
Overrides:
tearDown in class FoodMartTestCase
Throws:
Exception

testNoTotalsForCompdMeasureWithComponentsHavingNonJoiningDims

public void testNoTotalsForCompdMeasureWithComponentsHavingNonJoiningDims()

testNonJoiningDimsWhenAggFunctionIsUsedOrNotUsed

public void testNonJoiningDimsWhenAggFunctionIsUsedOrNotUsed()

testNonJoiningDimForAMemberDefinedOnJoiningDim

public void testNonJoiningDimForAMemberDefinedOnJoiningDim()

testNonJoiningDimWithNumericIif

public void testNonJoiningDimWithNumericIif()

testNonJoiningDimAtMemberValueCalcMultipleScenarios

public void testNonJoiningDimAtMemberValueCalcMultipleScenarios()

testNonJoiningDimAtTupleValueCalcMultipleScenarios

public void testNonJoiningDimAtTupleValueCalcMultipleScenarios()

testNoTotalsForCompoundMeasureWithNonJoiningDimAtAllLevel

public void testNoTotalsForCompoundMeasureWithNonJoiningDimAtAllLevel()

testNoTotalForMeasureWithCrossJoinOfJoiningAndNonJoiningDims

public void testNoTotalForMeasureWithCrossJoinOfJoiningAndNonJoiningDims()

testShouldTotalAMeasureWithAllJoiningDimensions

public void testShouldTotalAMeasureWithAllJoiningDimensions()

testShouldNotTotalAMeasureWithANonJoiningDimension

public void testShouldNotTotalAMeasureWithANonJoiningDimension()

testGetMeasureCubeForCalcMeasureDoesNotThrowCastException

public void testGetMeasureCubeForCalcMeasureDoesNotThrowCastException()

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