Package mondrian.test.clearview
Class ClearViewBase
- java.lang.Object
-
- TestCase
-
- mondrian.test.FoodMartTestCase
-
- mondrian.rolap.BatchTestCase
-
- mondrian.test.clearview.ClearViewBase
-
- Direct Known Subclasses:
BatchedFillTest
,CVBasicTest
,GrandTotalTest
,HangerDimensionTest
,MemHungryTest
,MetricFilterTest
,MiscTest
,MultiDimTest
,MultiDimVCTest
,MultiLevelTest
,MultiLevelVCTest
,OrderTest
,PartialCacheTest
,PartialCacheVCTest
,PredicateFilterTest
,QueryAllTest
,QueryAllVCTest
,SubTotalTest
,SummaryMetricPercentTest
,SummaryTest
,TopBottomTest
public abstract class ClearViewBase extends BatchTestCase
ClearViewBase
is the base class to build test cases which test queries against the FoodMart database. A concrete sub class and a ref.xml file will be needed for each test suites to be added. MDX queries and their expected results are maintained separately in *.ref.xml files. If you would prefer to see them as inlined Java string literals, run ant target "generateDiffRepositoryJUnit" and then use files *JUnit.java which will be generated in this directory.- Since:
- Jan 25, 2007
- Author:
- John Sichi, Richard Emberson, Khanh Vu
-
-
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 ClearViewBase()
ClearViewBase(java.lang.String name)
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected void
assertNoQuerySql(boolean flushCache)
protected void
assertQuerySql(boolean flushCache)
static TestSuite
constructSuite(DiffRepository diffRepos, java.lang.Class clazz)
abstract DiffRepository
getDiffRepos()
protected void
runTest()
protected void
setUp()
protected void
tearDown()
-
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, getTestContext, isDefaultNullMemberRepresentation, isGroupingSetsSupported, member, productMembersPotScrubbersPotsAndPans, storeMembersCAAndOR, storeMembersUsaAndCanada, verifySameNativeAndNot, warehouseMembersCanadaMexicoUsa
-
-
-
-
Method Detail
-
getDiffRepos
public abstract DiffRepository getDiffRepos()
-
setUp
protected void setUp() throws java.lang.Exception
- Throws:
java.lang.Exception
-
tearDown
protected void tearDown() throws java.lang.Exception
- Overrides:
tearDown
in classFoodMartTestCase
- Throws:
java.lang.Exception
-
constructSuite
public static TestSuite constructSuite(DiffRepository diffRepos, java.lang.Class clazz)
-
runTest
protected void runTest() throws java.lang.Exception
- Throws:
java.lang.Exception
-
assertQuerySql
protected void assertQuerySql(boolean flushCache) throws java.lang.Exception
- Throws:
java.lang.Exception
-
assertNoQuerySql
protected void assertNoQuerySql(boolean flushCache) throws java.lang.Exception
- Throws:
java.lang.Exception
-
-