Package mondrian.test

Class SteelWheelsTestCase

  • Direct Known Subclasses:
    SteelWheelsSchemaTest

    public class SteelWheelsTestCase
    extends TestCase
    Unit test against Pentaho's Steel Wheels sample database.

    It is not required that the Steel Wheels database be present, so each test should check whether the database exists and trivially succeed if it does not.

    Since:
    12 March 2009
    Author:
    jhyde
    • Constructor Detail

      • SteelWheelsTestCase

        public SteelWheelsTestCase​(String name)
        Creates a SteelwheelsTestCase.
        Parameters:
        name - Test case name (usually method name)
      • SteelWheelsTestCase

        public SteelWheelsTestCase()
        Creates a SteelwheelsTestCase.
    • Method Detail

      • createContext

        public static TestContext createContext​(TestContext context,
                                                String schema)
        Creates a TestContext which contains the given schema text.
        Parameters:
        context - Base test context
        schema - A XML schema, or null Used for testing if the connection is valid.
        Returns:
        TestContext which contains the given schema
      • getTestContext

        public TestContext getTestContext()
        Returns the test context. Override this method if you wish to use a different source for your SteelWheels connection.