public class MemoryMonitorTest extends FoodMartTestCase
ObjectPool
.Modifier and Type | Class and Description |
---|---|
static class |
MemoryMonitorTest.TestMM |
static class |
MemoryMonitorTest.TestMM2 |
Modifier and Type | Field and Description |
---|---|
protected boolean |
enabled |
(package private) static int |
PERCENT_100 |
propSaver
Constructor and Description |
---|
MemoryMonitorTest() |
MemoryMonitorTest(String name) |
Modifier and Type | Method and Description |
---|---|
void |
_testQuery()
Run this by itself and it works across 2 orders of magnitude.
|
boolean |
causeGC(MemoryMonitor mm)
Get the difference between the maximum memory and the used memory
and divide that by 1000.
|
protected static int |
convertThresholdToPercentage(long threshold,
long maxMemory) |
protected void |
setUp() |
protected void |
tearDown() |
void |
testDeltaUsage() |
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
countTestCases, createResult, getName, run, run, runBare, runTest, setName, 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
static final int PERCENT_100
protected boolean enabled
public MemoryMonitorTest()
public MemoryMonitorTest(String name)
protected static int convertThresholdToPercentage(long threshold, long maxMemory)
public boolean causeGC(MemoryMonitor mm)
OutOfMemoryError
is
created.protected void setUp() throws Exception
setUp
in class junit.framework.TestCase
Exception
protected void tearDown() throws Exception
tearDown
in class FoodMartTestCase
Exception