mondrian.test
Class SteelWheelsTestCase

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by mondrian.test.SteelWheelsTestCase
All Implemented Interfaces:
junit.framework.Test
Direct Known Subclasses:
SteelWheelsSchemaTest

public class SteelWheelsTestCase
extends junit.framework.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
SteelWheelsTestCase()
          Creates a SteelwheelsTestCase.
SteelWheelsTestCase(String name)
          Creates a SteelwheelsTestCase.
 
Method Summary
static TestContext createContext(TestContext context, String schema)
          Creates a TestContext which contains the given schema text.
 TestContext getTestContext()
          Returns the test context.
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

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.


Get Mondrian at SourceForge.net. Fast, secure and free Open Source software downloads