Class VirtualCubeTest


  • public class VirtualCubeTest
    extends BatchTestCase
    Unit tests for virtual cubes.
    Since:
    Feb 14, 2003
    Author:
    remberson
    • Constructor Detail

      • VirtualCubeTest

        public VirtualCubeTest()
        Creates an anonymous VirtualCubeTest.
      • VirtualCubeTest

        public VirtualCubeTest​(String name)
        Creates a VirtualCubeTest.
        Parameters:
        name - Test case name
    • Method Detail

      • testCalculatedMeasureAsDefaultMeasureInVC

        public void testCalculatedMeasureAsDefaultMeasureInVC()
      • testDefaultMeasureInVCForIncorrectMeasureName

        public void testDefaultMeasureInVCForIncorrectMeasureName()
      • testVirtualCubeMeasureInvalidCubeName

        public void testVirtualCubeMeasureInvalidCubeName()
      • testDefaultMeasureInVCForCaseSensitivity

        public void testDefaultMeasureInVCForCaseSensitivity()
      • testWithTimeDimension

        public void testWithTimeDimension()
      • testNonDefaultAllMember

        public void testNonDefaultAllMember()
        Query a virtual cube that contains a non-conforming dimension that does not have ALL as its default member.
      • testNonDefaultAllMember2

        public void testNonDefaultAllMember2()
      • testMemberVisibility

        public void testMemberVisibility()
      • testFormatStringExpressionCubeNoCache

        public void testFormatStringExpressionCubeNoCache()
        Test an expression for the format_string of a calculated member that evaluates calculated members based on a virtual cube. One cube has cache turned on, the other cache turned off.

        Since evaluation of the format_string used to happen after the aggregate cache was cleared, this used to fail, this should be solved with the caching of the format string.

        Without caching of format string, the query returns green for all styles.

      • testCalculatedMeasure

        public void testCalculatedMeasure()
      • testLostData

        public void testLostData()
      • testCalculatedMeasureAcrossCubes

        public void testCalculatedMeasureAcrossCubes()
        Tests a calc measure which combines a measures from the Sales cube with a measures from the Warehouse cube.
      • testCalculatedMemberInSchema

        public void testCalculatedMemberInSchema()
        Tests a calc member defined in the cube.
      • testAllMeasureMembers

        public void testAllMeasureMembers()
      • testOrdinalColumn

        public void testOrdinalColumn()
        Test a virtual cube where one of the dimensions contains an ordinalColumn property
      • testDefaultMeasureProperty

        public void testDefaultMeasureProperty()
      • testNativeSetCaching

        public void testNativeSetCaching()
        Checks that native set caching considers base cubes in the cache key. Native sets referencing different base cubes do not share the cached result.
      • testBugMondrian322a

        public void testBugMondrian322a()
      • testRolapCubeLevelInVirtualCube

        public void testRolapCubeLevelInVirtualCube()
        Test that RolapCubeLevel is used correctly in the context of virtual cube.
      • testNonEmptyCJConstraintOnVirtualCube

        public void testNonEmptyCJConstraintOnVirtualCube()
        Tests that the logic to apply non empty context constraint in virtual cube is correct. The joins shouldn't be cartesian product.
      • testNonEmptyConstraintOnVirtualCubeWithCalcMeasure

        public void testNonEmptyConstraintOnVirtualCubeWithCalcMeasure()
        Tests that the logic to apply non empty context constraint in virtual cube is correct. The joins shouldn't be cartesian product.
      • testVirtualCubeRecursiveMember

        public void testVirtualCubeRecursiveMember()

        MONDRIAN-1061

        The idea is that [recurse] is a calculated member uses
        CoalesceEmpty((Measures.[Unit Sales], [Time].CurrentMember ) , (Measures.[recurse],[Time].CurrentMember.PrevMember)))
        ...calculation. Food mart have no data for 1998 quarter, So this way we expect:

        • not to fall into StackOverflow for recursive calculation when member is referenced in VirtualCube.
        • check that CoalesceEmpty calculated correctly (repeatable values from previous not null result)

      • testCrossjoinOptimizerWithVirtualCube

        public void testCrossjoinOptimizerWithVirtualCube()