Package mondrian.test
Class NamedSetTest
- java.lang.Object
-
- TestCase
-
- mondrian.test.FoodMartTestCase
-
- mondrian.test.NamedSetTest
-
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
Nested Classes Modifier and Type Class Description 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
Constructors Constructor Description NamedSetTest()
NamedSetTest(java.lang.String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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 oftestNamedSetRangeInSlicer()
that callsCompoundSlicerTest.testBugMondrian899()
to prime the cache and therefore fails even when run standalone.void
testNamedSetsMixedWithCalcMembers()
void
testNamedSetUsedInCrossJoin()
Set used inside expression (Crossjoin).void
testNamedSetWithCompoundSlicer()
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, verifySameNativeAndNot, warehouseMembersCanadaMexicoUsa
-
-
-
-
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()
-
testNamedSetWithCompoundSlicer
public void testNamedSetWithCompoundSlicer()
-
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 oftestNamedSetRangeInSlicer()
that callsCompoundSlicerTest.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".
-
-