Package mondrian.test

Class ScenarioTest


  • public class ScenarioTest
    extends FoodMartTestCase
    Test for writeback functionality.
    Since:
    24 April, 2009
    Author:
    jhyde
    • Constructor Detail

      • ScenarioTest

        public ScenarioTest()
    • Method Detail

      • testCreateScenario

        public void testCreateScenario()
                                throws SQLException
        Tests creating a scenario and setting a connection's active scenario.
        Throws:
        SQLException
      • testSetCellWithoutScenarioFails

        public void testSetCellWithoutScenarioFails()
                                             throws SQLException
        Tests that setting a cell's value without an active scenario is illegal.
        Throws:
        SQLException
      • testSetCellCalcError

        public void testSetCellCalcError()
                                  throws SQLException
        Tests that setting a calculated member is illegal.
        Throws:
        SQLException
      • testUnsupportedAllocationPolicyFails

        public void testUnsupportedAllocationPolicyFails()
                                                  throws SQLException
        Tests that allocation policies that are not supported give an error.
        Throws:
        SQLException
      • testEqualIncrement

        public void testEqualIncrement()
                                throws SQLException
        Tests setting cells by the "equal increment" allocation policy.
        Throws:
        SQLException
      • testEqualAllocation

        public void testEqualAllocation()
                                 throws SQLException
        Tests setting cells by the "equal allocation" allocation policy.
        Throws:
        SQLException
      • testBugMondrian815

        public void testBugMondrian815()
                                throws SQLException
        Test case for MONDRIAN-815, "NPE from query if use a scenario and one of the cells is empty/null".
        Throws:
        SQLException
      • testScenarioPropertyBug1496

        public void testScenarioPropertyBug1496()