|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
mondrian.test.FoodMartTestCase
mondrian.test.CacheHitTest
public class CacheHitTest
The CacheHitTest
class contains test suites that return
hit ratio of aggregation cache for various sequences of MDX queries.
This test should be run with mondrian property
mondrian.rolap.agg.enableCacheHitCounters=true
This is not run as part of Main test suite as it only reports
ratios for further investigations.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class mondrian.test.FoodMartTestCase |
---|
FoodMartTestCase.QueryAndResult |
Field Summary |
---|
Fields inherited from class mondrian.test.FoodMartTestCase |
---|
propSaver |
Constructor Summary | |
---|---|
CacheHitTest()
|
Method Summary | |
---|---|
void |
clearCache(java.lang.String cube)
Clears aggregation cache |
void |
report(CountingAggregationManager am)
Prints cache hit ratio |
void |
runRandomSuite(TestSuite suite,
int n)
Loops n times, each time run a random test case
in the test suite |
void |
runTestSuiteInOrder(TestSuite suite,
int numIter)
Loops numIte times, each time run all child test
suite in the suite |
void |
testBigSetRandom()
Runs a set of bigger MDX queries that requires more memory and targets a bigger region of cache in random order. |
void |
testSmallSetRandom()
Runs a set of small MDX queries that targets a small region of aggregation cache in random order. |
void |
testSmallSetSequential()
Runs a set of small MDX queries that targets a small region of aggregation cache sequentially. |
void |
testSmallSetVCRandom()
Runs a set of small MDX queries that targets a small region of aggregation cache in random order. |
void |
testSmallSetVCSequential()
Runs a set of small MDX queries that targets a small region of aggregation cache sequentially. |
Methods inherited from class junit.framework.TestCase |
---|
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, 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 |
---|
public CacheHitTest()
Method Detail |
---|
public void testSmallSetSequential() throws java.lang.Exception
java.lang.Exception
public void testSmallSetRandom() throws java.lang.Exception
java.lang.Exception
public void testSmallSetVCSequential() throws java.lang.Exception
java.lang.Exception
public void testSmallSetVCRandom() throws java.lang.Exception
java.lang.Exception
public void testBigSetRandom() throws java.lang.Exception
java.lang.Exception
public void runRandomSuite(TestSuite suite, int n) throws java.lang.Exception
n
times, each time run a random test case
in the test suite
suite
- the suite of test casesn
- number of times
java.lang.Exception
public void runTestSuiteInOrder(TestSuite suite, int numIter) throws java.lang.Exception
numIte
times, each time run all child test
suite in the suite
suite
- the suite of test suitesnumIter
- number of iterations
java.lang.Exception
public void report(CountingAggregationManager am)
public void clearCache(java.lang.String cube)
cube
-
|
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |