mondrian.test.clearview
Class ClearViewBase

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by mondrian.test.FoodMartTestCase
              extended by mondrian.rolap.BatchTestCase
                  extended by mondrian.test.clearview.ClearViewBase
All Implemented Interfaces:
junit.framework.Test
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
ClearViewBase()
           
ClearViewBase(String name)
           
 
Method Summary
protected  void assertNoQuerySql(boolean flushCache)
           
protected  void assertQuerySql(boolean flushCache)
           
static junit.framework.TestSuite constructSuite(DiffRepository diffRepos, 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
 
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, warehouseMembersCanadaMexicoUsa
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ClearViewBase

public ClearViewBase()

ClearViewBase

public ClearViewBase(String name)
Method Detail

getDiffRepos

public abstract DiffRepository getDiffRepos()

setUp

protected void setUp()
              throws Exception
Overrides:
setUp in class junit.framework.TestCase
Throws:
Exception

tearDown

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

constructSuite

public static junit.framework.TestSuite constructSuite(DiffRepository diffRepos,
                                                       Class clazz)

runTest

protected void runTest()
                throws Exception
Overrides:
runTest in class junit.framework.TestCase
Throws:
Exception

assertQuerySql

protected void assertQuerySql(boolean flushCache)
                       throws Exception
Throws:
Exception

assertNoQuerySql

protected void assertNoQuerySql(boolean flushCache)
                         throws Exception
Throws:
Exception

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