public class CacheControlTest extends FoodMartTestCase
propSaver
Constructor and Description |
---|
CacheControlTest()
Creates a CacheControlTest.
|
CacheControlTest(String name)
Creates a CacheControlTest with the given name.
|
Modifier and Type | Method and Description |
---|---|
(package private) static void |
assertContains(String pattern,
String message)
Asserts that a given string contains a given pattern.
|
static void |
flushCache(TestContext testContext)
Flushes the entire contents of the cache.
|
(package private) DiffRepository |
getDiffRepos()
Returns the repository of result strings.
|
(package private) CacheControl.CellRegion |
memberRegion(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 |
testFlushNonPrimedContent()
|
void |
testMondrian1094() |
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_2()
This is a test for
MONDRIAN-1120
|
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.
|
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, tearDown, warehouseMembersCanadaMexicoUsa
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, toString
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
public CacheControlTest()
public CacheControlTest(String name)
DiffRepository getDiffRepos()
public static void flushCache(TestContext testContext)
testContext
- Test contextpublic void testCreateCellRegion()
CacheControl
.public void testNormalize2()
public void testFlush()
public void testPartialFlush()
public void testPartialFlush_2() throws Exception
SegmentCacheIndexImpl.intersects was not comparing the header column values to those of the cache region.
Exception
public void testPartialFlushRange()
static void assertContains(String pattern, String message)
pattern
- Pattern to findmessage
- Stringjunit.framework.AssertionFailedError
- if pattern is not foundpublic void testNegative()
public void testCrossjoin()
CacheControl.createCrossjoinRegion(mondrian.olap.CacheControl.CellRegion...)
.CacheControl.CellRegion memberRegion(String uniqueName)
public void testNormalize()
public void testFlushNonPrimedContent() throws Exception
Exception