Package mondrian.test
Class SteelWheelsTestCase
- java.lang.Object
-
- TestCase
-
- mondrian.test.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 Summary
Constructors Constructor Description SteelWheelsTestCase()
Creates a SteelwheelsTestCase.SteelWheelsTestCase(String name)
Creates a SteelwheelsTestCase.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TestContext
createContext(TestContext context, String schema)
Creates a TestContext which contains the given schema text.TestContext
getTestContext()
Returns the test context.
-
-
-
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 contextschema
- 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.
-
-