mondrian.test.loader
Class CsvDBTestCase

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by mondrian.test.FoodMartTestCase
              extended by mondrian.test.loader.CsvDBTestCase
All Implemented Interfaces:
Test
Direct Known Subclasses:
AggTableTestCase, Checkin_7634, Checkin_7641

public abstract class CsvDBTestCase
extends FoodMartTestCase

Base class for tests that use a CSV database defined in a single file. While the CsvDBLoader supports being defined by a single file, list of files, or directory with optional regular expression for matching files in the directory to be loaded, this is simplest at this point.

To use this file one must define both the directory and file abstract methods.

Version:
$Id: //open/mondrian/testsrc/main/mondrian/test/loader/CsvDBTestCase.java#11 $
Author:
Richard M. Emberson

Field Summary
 
Fields inherited from class mondrian.test.FoodMartTestCase
propSaver
 
Constructor Summary
CsvDBTestCase()
           
CsvDBTestCase(java.lang.String name)
           
 
Method Summary
protected abstract  java.lang.String getCubeDescription()
           
protected  TestContext getCubeTestContext()
           
protected abstract  java.lang.String getDirectoryName()
           
protected abstract  java.lang.String getFileName()
           
protected  java.lang.String getNamedSetDescription()
           
protected  java.lang.String getParameterDescription()
           
protected  java.lang.String getRoleDescription()
           
protected  Schema getSchema()
           
protected  java.sql.Connection getSqlConnection()
           
protected  java.lang.String getUdfDescription()
           
protected  java.lang.String getVirtualCubeDescription()
           
protected  boolean isApplicable()
           
protected  void setUp()
           
protected  void tearDown()
           
 
Methods inherited from class mondrian.test.FoodMartTestCase
allMember, assertAxisReturns, assertAxisThrows, assertBooleanExprReturns, assertExprReturns, assertExprThrows, assertQueriesReturnSimilarResults, assertQueryReturns, assertQueryThrows, assertSize, cubeByName, execute, executeExpr, executeQuery, executeSingletonAxis, genderMembersIncludingAll, getConnection, getDimensionWithName, getTestContext, getTestContext, isDefaultNullMemberRepresentation, isGroupingSetsSupported, member, productMembersPotScrubbersPotsAndPans, storeMembersCAAndOR, storeMembersUsaAndCanada, warehouseMembersCanadaMexicoUsa
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, 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

CsvDBTestCase

public CsvDBTestCase()

CsvDBTestCase

public CsvDBTestCase(java.lang.String name)
Method Detail

isApplicable

protected final boolean isApplicable()

setUp

protected void setUp()
              throws java.lang.Exception
Overrides:
setUp in class TestCase
Throws:
java.lang.Exception

tearDown

protected void tearDown()
                 throws java.lang.Exception
Overrides:
tearDown in class FoodMartTestCase
Throws:
java.lang.Exception

getSqlConnection

protected java.sql.Connection getSqlConnection()
                                        throws java.sql.SQLException
Throws:
java.sql.SQLException

getSchema

protected Schema getSchema()

getCubeTestContext

protected TestContext getCubeTestContext()

getDirectoryName

protected abstract java.lang.String getDirectoryName()

getFileName

protected abstract java.lang.String getFileName()

getParameterDescription

protected java.lang.String getParameterDescription()

getCubeDescription

protected abstract java.lang.String getCubeDescription()

getVirtualCubeDescription

protected java.lang.String getVirtualCubeDescription()

getNamedSetDescription

protected java.lang.String getNamedSetDescription()

getUdfDescription

protected java.lang.String getUdfDescription()

getRoleDescription

protected java.lang.String getRoleDescription()

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