Examples of assertExprReturns()


Examples of mondrian.test.TestContext.assertExprReturns()

                + "Axis #1:\n"
                + "{[Measures].[Foo]}\n"
                + "Row #0: " + expected + "\n";
            testContextSpain.assertQueryReturns(query, expected2);
        } else {
            testContextSpain.assertExprReturns(expr, expected);
        }
    }

    public void testConnectSansCatalogFails() {
        Util.PropertyList properties =
View Full Code Here

Examples of mondrian.test.TestContext.assertExprReturns()

            "[Employees].[Sheri Nowmer].[Donna Arnold].[Howard Bechard]");
        testContext.assertAxisReturns(
            "Descendants([Employees].[All Employees].[Sheri Nowmer].[Donna Arnold].[Howard Bechard], 1, LEAVES)",
            "[Employees].[Sheri Nowmer].[Donna Arnold].[Howard Bechard]");

        testContext.assertExprReturns(
            "Count(Descendants([Employees], 2, LEAVES))", "16");
        testContext.assertExprReturns(
            "Count(Descendants([Employees], 3, LEAVES))", "16");
        testContext.assertExprReturns(
            "Count(Descendants([Employees], 4, LEAVES))", "63");
View Full Code Here

Examples of mondrian.test.TestContext.assertExprReturns()

            "Descendants([Employees].[All Employees].[Sheri Nowmer].[Donna Arnold].[Howard Bechard], 1, LEAVES)",
            "[Employees].[Sheri Nowmer].[Donna Arnold].[Howard Bechard]");

        testContext.assertExprReturns(
            "Count(Descendants([Employees], 2, LEAVES))", "16");
        testContext.assertExprReturns(
            "Count(Descendants([Employees], 3, LEAVES))", "16");
        testContext.assertExprReturns(
            "Count(Descendants([Employees], 4, LEAVES))", "63");
        testContext.assertExprReturns(
            "Count(Descendants([Employees], 999, LEAVES))", "1,044");
View Full Code Here

Examples of mondrian.test.TestContext.assertExprReturns()

        testContext.assertExprReturns(
            "Count(Descendants([Employees], 2, LEAVES))", "16");
        testContext.assertExprReturns(
            "Count(Descendants([Employees], 3, LEAVES))", "16");
        testContext.assertExprReturns(
            "Count(Descendants([Employees], 4, LEAVES))", "63");
        testContext.assertExprReturns(
            "Count(Descendants([Employees], 999, LEAVES))", "1,044");

        // Negative depth acts like +infinity (per MSAS).  Run the test several
View Full Code Here

Examples of mondrian.test.TestContext.assertExprReturns()

            "Count(Descendants([Employees], 2, LEAVES))", "16");
        testContext.assertExprReturns(
            "Count(Descendants([Employees], 3, LEAVES))", "16");
        testContext.assertExprReturns(
            "Count(Descendants([Employees], 4, LEAVES))", "63");
        testContext.assertExprReturns(
            "Count(Descendants([Employees], 999, LEAVES))", "1,044");

        // Negative depth acts like +infinity (per MSAS).  Run the test several
        // times because we had a non-deterministic bug here.
        for (int i = 0; i < 100; ++i) {
View Full Code Here

Examples of mondrian.test.TestContext.assertExprReturns()

            "Count(Descendants([Employees], 999, LEAVES))", "1,044");

        // Negative depth acts like +infinity (per MSAS).  Run the test several
        // times because we had a non-deterministic bug here.
        for (int i = 0; i < 100; ++i) {
            testContext.assertExprReturns(
                "Count(Descendants([Employees], -1, LEAVES))", "1,044");
        }
    }

    public void testDescendantsSBA() {
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.