Package mondrian.test.loader
Class CsvDBTestCase
- java.lang.Object
-
- TestCase
-
- mondrian.test.FoodMartTestCase
-
- mondrian.rolap.BatchTestCase
-
- mondrian.test.loader.CsvDBTestCase
-
- Direct Known Subclasses:
AggTableTestCase,Checkin_7634,Checkin_7641
public abstract class CsvDBTestCase extends BatchTestCase
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.
- Author:
- Richard M. Emberson
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class mondrian.rolap.BatchTestCase
BatchTestCase.TestCase
-
-
Field Summary
-
Fields inherited from class mondrian.rolap.BatchTestCase
cubeNameSales, fieldGender, fieldProductDepartment, fieldProductFamily, fieldValueProductDepartment, fieldValuesGender, fieldValuesProductFamily, fieldValuesYear, fieldYear, measureUnitSales, tableCustomer, tableProductClass, tableTime
-
Fields inherited from class mondrian.test.FoodMartTestCase
propSaver
-
-
Constructor Summary
Constructors Constructor Description CsvDBTestCase()CsvDBTestCase(String name)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected TestContextcreateTestContext()protected StringgetCubeDescription()protected abstract StringgetDirectoryName()protected abstract StringgetFileName()protected StringgetNamedSetDescription()protected StringgetParameterDescription()protected StringgetRoleDescription()protected SchemagetSchema()protected ConnectiongetSqlConnection()TestContextgetTestContext()Returns the test context.protected StringgetUdfDescription()protected StringgetVirtualCubeDescription()protected booleanisApplicable()protected voidsetUp()protected voidtearDown()-
Methods inherited from class mondrian.rolap.BatchTestCase
assertNative, assertNoQuerySql, assertNotNative, assertQuerySql, assertQuerySql, assertQuerySql, assertQuerySqlOrNot, assertRequestSql, assertRequestSql, checkNative, checkNative, checkNative, checkNotNative, checkNotNative, checkNotNative, createBatch, createBatch, createRequest, createRequest, createRequest, createRequest, dialectize, executeQuery, getCube, getFoodMartConnection, getGroupingSet, getMeasure, mysqlPattern, sqlPattern
-
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, isDefaultNullMemberRepresentation, isGroupingSetsSupported, member, productMembersPotScrubbersPotsAndPans, storeMembersCAAndOR, storeMembersUsaAndCanada, verifySameNativeAndNot, warehouseMembersCanadaMexicoUsa
-
-
-
-
Constructor Detail
-
CsvDBTestCase
public CsvDBTestCase()
-
CsvDBTestCase
public CsvDBTestCase(String name)
-
-
Method Detail
-
isApplicable
protected final boolean isApplicable()
-
createTestContext
protected TestContext createTestContext()
-
getTestContext
public TestContext getTestContext()
Description copied from class:FoodMartTestCaseReturns the test context. Override this method if you wish to use a different source for your FoodMart connection.- Overrides:
getTestContextin classFoodMartTestCase
-
tearDown
protected void tearDown() throws Exception- Overrides:
tearDownin classFoodMartTestCase- Throws:
Exception
-
getSqlConnection
protected Connection getSqlConnection() throws SQLException
- Throws:
SQLException
-
getSchema
protected Schema getSchema()
-
getDirectoryName
protected abstract String getDirectoryName()
-
getFileName
protected abstract String getFileName()
-
getParameterDescription
protected String getParameterDescription()
-
getCubeDescription
protected String getCubeDescription()
-
getVirtualCubeDescription
protected String getVirtualCubeDescription()
-
getNamedSetDescription
protected String getNamedSetDescription()
-
getUdfDescription
protected String getUdfDescription()
-
getRoleDescription
protected String getRoleDescription()
-
-