Examples of assertAxisThrows()


Examples of mondrian.test.TestContext.assertAxisThrows()

            "OpeningPeriod([Time].[Month])", "[Time].[1997].[Q1].[1]");

        assertAxisReturns("OpeningPeriod()", "[Time].[1997].[Q1]");

        TestContext testContext = getTestContext().withCube("[Sales Ragged]");
        testContext.assertAxisThrows(
            "OpeningPeriod([Time].[Year], [Store].[All Stores].[Israel])",
            "The <level> and <member> arguments to OpeningPeriod must be "
            + "from the same hierarchy. The level was from '[Time]' but "
            + "the member was from '[Store]'.");
View Full Code Here

Examples of mondrian.test.TestContext.assertAxisThrows()

        TestContext testContext = getTestContext().withCube("[Sales Ragged]");
        testContext.assertAxisReturns(
            "ClosingPeriod([Store].[Store State], [Store].[All Stores].[Israel])",
            "");

        testContext.assertAxisThrows(
            "ClosingPeriod([Time].[Year], [Store].[All Stores].[Israel])",
            "The <level> and <member> arguments to ClosingPeriod must be "
            + "from the same hierarchy. The level was from '[Time]' but "
            + "the member was from '[Store]'.");
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.