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:
Test

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
Version:
$Id: //open/mondrian/testsrc/main/mondrian/test/SteelWheelsTestCase.java#4 $
Author:
jhyde

Constructor Summary
SteelWheelsTestCase()
          Creates a SteelwheelsTestCase.
SteelWheelsTestCase(java.lang.String name)
          Creates a SteelwheelsTestCase.
 
Method Summary
 TestContext getTestContext()
          Returns the test context.
 void testMarkets()
          Test case for Infobright issue where [Markets].[All Markets].[Japan] was not found but [Markets].[All Markets].[JAPAN] was OK.
 void testMeasures()
          Sanity check, that enumerates the Measures dimension.
 
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, failNotEquals, failNotSame, failSame
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SteelWheelsTestCase

public SteelWheelsTestCase(java.lang.String name)
Creates a SteelwheelsTestCase.

Parameters:
name - Test case name (usually method name)

SteelWheelsTestCase

public SteelWheelsTestCase()
Creates a SteelwheelsTestCase.

Method Detail

getTestContext

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


testMeasures

public void testMeasures()
Sanity check, that enumerates the Measures dimension.


testMarkets

public void testMarkets()
Test case for Infobright issue where [Markets].[All Markets].[Japan] was not found but [Markets].[All Markets].[JAPAN] was OK.


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