mondrian.test
Class NamedSetTest

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

public class NamedSetTest
extends FoodMartTestCase

Unit-test for named sets, in all their various forms: WITH SET, sets defined against cubes, virtual cubes, and at the schema level.

Since:
April 30, 2005
Author:
jhyde

Nested Class Summary
static class NamedSetTest.MixedNamedSetSchemaProcessor
          Dynamic schema processor which adds a named set which has a syntax error.
static class NamedSetTest.NamedSetsInCubeAndSchemaProcessor
          Dynamic schema processor which adds two named sets to a the first cube in a schema.
static class NamedSetTest.NamedSetsInCubeProcessor
          Dynamic schema processor which adds two named sets to a the first cube in a schema.
 
Nested classes/interfaces inherited from class mondrian.test.FoodMartTestCase
FoodMartTestCase.QueryAndResult
 
Field Summary
 
Fields inherited from class mondrian.test.FoodMartTestCase
propSaver
 
Constructor Summary
NamedSetTest()
           
NamedSetTest(String name)
           
 
Method Summary
 void _testXxx()
           
 void testAggOnCalcMember()
           
 void testBadNamedSet()
           
 void testContextSensitiveNamedSet()
           
 void testCurrentAndCurrentOrdinal()
           
 void testGenerate()
           
 void testHierarchizeNamedSetImmutable()
          Test csae for bug 1971080, "hierarchize(named set) causes attempt to sort immutable list".
 void testIntrinsic()
          Set defined using filter expression.
 void testNamedSet()
          Set defined in query according measures, hence context-dependent.
 void testNamedSetAgainstCube()
           
 void testNamedSetAgainstSchema()
           
 void testNamedSetAndUnion()
           
 void testNamedSetAsList()
          Set defined by explicit tlist in query.
 void testNamedSetCrossJoin()
          Tests a named set defined in a query which consists of tuples.
 void testNamedSetDependencies()
          Tests that named sets never depend on anything.
 void testNamedSetMustBeSet()
           
 void testNamedSetOnMember()
          Set defined on top of calc member.
 void testNamedSetRangeInSlicer()
          Test case for issue on developers list which involves a named set and a range in the WHERE clause.
 void testNamedSetRangeInSlicerPrimed()
          Variant of testNamedSetRangeInSlicer() that calls CompoundSlicerTest.testBugMondrian899() to prime the cache and therefore fails even when run standalone.
 void testNamedSetsMixedWithCalcMembers()
           
 void testNamedSetUsedInCrossJoin()
          Set used inside expression (Crossjoin).
 void testOrderedNamedSet()
           
 
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, 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

NamedSetTest

public NamedSetTest()

NamedSetTest

public NamedSetTest(String name)
Method Detail

testNamedSet

public void testNamedSet()
Set defined in query according measures, hence context-dependent.


testNamedSetOnMember

public void testNamedSetOnMember()
Set defined on top of calc member.


testNamedSetAsList

public void testNamedSetAsList()
Set defined by explicit tlist in query.


testIntrinsic

public void testIntrinsic()
Set defined using filter expression.


testNamedSetCrossJoin

public void testNamedSetCrossJoin()
Tests a named set defined in a query which consists of tuples.


_testXxx

public void _testXxx()

testNamedSetUsedInCrossJoin

public void testNamedSetUsedInCrossJoin()
Set used inside expression (Crossjoin).


testAggOnCalcMember

public void testAggOnCalcMember()

testContextSensitiveNamedSet

public void testContextSensitiveNamedSet()

testOrderedNamedSet

public void testOrderedNamedSet()

testGenerate

public void testGenerate()

testNamedSetAgainstCube

public void testNamedSetAgainstCube()

testNamedSetAgainstSchema

public void testNamedSetAgainstSchema()

testBadNamedSet

public void testBadNamedSet()

testNamedSetMustBeSet

public void testNamedSetMustBeSet()

testNamedSetsMixedWithCalcMembers

public void testNamedSetsMixedWithCalcMembers()

testNamedSetAndUnion

public void testNamedSetAndUnion()

testNamedSetDependencies

public void testNamedSetDependencies()
Tests that named sets never depend on anything.


testHierarchizeNamedSetImmutable

public void testHierarchizeNamedSetImmutable()
Test csae for bug 1971080, "hierarchize(named set) causes attempt to sort immutable list".


testCurrentAndCurrentOrdinal

public void testCurrentAndCurrentOrdinal()

testNamedSetRangeInSlicer

public void testNamedSetRangeInSlicer()
Test case for issue on developers list which involves a named set and a range in the WHERE clause. Current Mondrian behavior appears to be correct.


testNamedSetRangeInSlicerPrimed

public void testNamedSetRangeInSlicerPrimed()
Variant of testNamedSetRangeInSlicer() that calls CompoundSlicerTest.testBugMondrian899() to prime the cache and therefore fails even when run standalone.

Test case for MONDRIAN-1203, "Error 'Failed to load all aggregations after 10 passes' while evaluating composite slicer".


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