|
|||||||||
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.rolap.CacheControlTest
public class CacheControlTest
Unit-test for cache-flushing functionality.
Field Summary |
---|
Fields inherited from class mondrian.test.FoodMartTestCase |
---|
propSaver |
Constructor Summary | |
---|---|
CacheControlTest()
Creates a CacheControlTest. |
|
CacheControlTest(java.lang.String name)
Creates a CacheControlTest with the given name. |
Method Summary | |
---|---|
(package private) static void |
assertContains(java.lang.String pattern,
java.lang.String message)
Asserts that a given string contains a given pattern. |
(package private) DiffRepository |
getDiffRepos()
Returns the repository of result strings. |
(package private) CacheControl.CellRegion |
memberRegion(java.lang.String uniqueName)
Helper method, creates a region consisting of a single member, given its unique name (e.g. |
void |
testCreateCellRegion()
Tests creation of a cell region against an abstract implementation of CacheControl . |
void |
testCrossjoin()
Tests crossjoin of regions, CacheControl.createCrossjoinRegion(mondrian.olap.CacheControl.CellRegion...) . |
void |
testFlush()
Creates a cell region, runs a query, then flushes the cache. |
void |
testNegative()
A number of negative tests, trying to do invalid things with cache flushing and getting errors. |
void |
testNormalize()
Tests the algorithm which converts a cache region specification into normal form. |
void |
testNormalize2()
Creates a cell region, runs a query, then flushes the cache. |
void |
testPartialFlush()
Creates a partial cell region, runs a query, then flushes the cache. |
void |
testPartialFlushRange()
Creates a partial cell region over a range, runs a query, then flushes the cache. |
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 CacheControlTest()
public CacheControlTest(java.lang.String name)
Method Detail |
---|
DiffRepository getDiffRepos()
public void testCreateCellRegion()
CacheControl
.
public void testNormalize2()
public void testFlush()
public void testPartialFlush()
public void testPartialFlushRange()
static void assertContains(java.lang.String pattern, java.lang.String message)
pattern
- Pattern to findmessage
- String
AssertionFailedError
- if pattern is not foundpublic void testNegative()
public void testCrossjoin()
CacheControl.createCrossjoinRegion(mondrian.olap.CacheControl.CellRegion...)
.
CacheControl.CellRegion memberRegion(java.lang.String uniqueName)
public void testNormalize()
|
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |