Examples of executeSingletonAxis()


Examples of mondrian.test.TestContext.executeSingletonAxis()

        Assert.assertEquals("Los Angeles", member.getName());

        final TestContext testContextRagged =
            getTestContext().withCube("[Sales Ragged]");
        member =
            testContextRagged.executeSingletonAxis(
                "Ancestor([Store].[All Stores].[Vatican], 1)");
        Assert.assertEquals("All Stores", member.getName());

        member =
            testContextRagged.executeSingletonAxis(
View Full Code Here

Examples of mondrian.test.TestContext.executeSingletonAxis()

            testContextRagged.executeSingletonAxis(
                "Ancestor([Store].[All Stores].[Vatican], 1)");
        Assert.assertEquals("All Stores", member.getName());

        member =
            testContextRagged.executeSingletonAxis(
                "Ancestor([Store].[USA].[Washington], 1)");
        Assert.assertEquals("USA", member.getName());

        // complicated way to say "1".
        member =
View Full Code Here

Examples of mondrian.test.TestContext.executeSingletonAxis()

                "Ancestor([Store].[USA].[Washington], 1)");
        Assert.assertEquals("USA", member.getName());

        // complicated way to say "1".
        member =
            testContextRagged.executeSingletonAxis(
                "Ancestor([Store].[USA].[Washington], 7 * 6 - 41)");
        Assert.assertEquals("USA", member.getName());

        member =
            testContextRagged.executeSingletonAxis(
View Full Code Here

Examples of mondrian.test.TestContext.executeSingletonAxis()

            testContextRagged.executeSingletonAxis(
                "Ancestor([Store].[USA].[Washington], 7 * 6 - 41)");
        Assert.assertEquals("USA", member.getName());

        member =
            testContextRagged.executeSingletonAxis(
                "Ancestor([Store].[All Stores].[Vatican], 2)");
        Assert.assertNull("Ancestor at 2 must be null", member);

        member =
            testContextRagged.executeSingletonAxis(
View Full Code Here

Examples of mondrian.test.TestContext.executeSingletonAxis()

            testContextRagged.executeSingletonAxis(
                "Ancestor([Store].[All Stores].[Vatican], 2)");
        Assert.assertNull("Ancestor at 2 must be null", member);

        member =
            testContextRagged.executeSingletonAxis(
                "Ancestor([Store].[All Stores].[Vatican], -5)");
        Assert.assertNull("Ancestor at -5 must be null", member);
    }

    public void testAncestorHigher() {
View Full Code Here

Examples of mondrian.test.TestContext.executeSingletonAxis()

    public void testAncestorWithHiddenParent() {
        final TestContext testContext =
            getTestContext().withCube("[Sales Ragged]");
        Member member =
            testContext.executeSingletonAxis(
                "Ancestor([Store].[All Stores].[Israel].[Haifa], "
                + "[Store].[Store Country])");

        assertNotNull("Member must not be null.", member);
        Assert.assertEquals("Israel", member.getName());
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.