Package mondrian.test

Class 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
    • 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()
      • 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.