|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object junit.framework.Assert junit.framework.TestCase mondrian.test.FoodMartTestCase mondrian.rolap.BatchTestCase mondrian.test.clearview.ClearViewBase
public abstract class ClearViewBase
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.
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 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 |
---|
public ClearViewBase()
public ClearViewBase(String name)
Method Detail |
---|
public abstract DiffRepository getDiffRepos()
protected void setUp() throws Exception
setUp
in class junit.framework.TestCase
Exception
protected void tearDown() throws Exception
tearDown
in class FoodMartTestCase
Exception
public static junit.framework.TestSuite constructSuite(DiffRepository diffRepos, Class clazz)
protected void runTest() throws Exception
runTest
in class junit.framework.TestCase
Exception
protected void assertQuerySql(boolean flushCache) throws Exception
Exception
protected void assertNoQuerySql(boolean flushCache) throws Exception
Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |