|
|||||||||
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.util.MemoryMonitorTest
public class MemoryMonitorTest
Test case for ObjectPool
.
Nested Class Summary | |
---|---|
static class |
MemoryMonitorTest.TestMM
|
static class |
MemoryMonitorTest.TestMM2
|
Field Summary | |
---|---|
protected boolean |
enabled
|
(package private) static int |
PERCENT_100
|
Fields inherited from class mondrian.test.FoodMartTestCase |
---|
propSaver |
Constructor Summary | |
---|---|
MemoryMonitorTest()
|
|
MemoryMonitorTest(String name)
|
Method Summary | |
---|---|
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()
|
Methods inherited from class junit.framework.TestCase |
---|
countTestCases, createResult, getName, run, run, runBare, runTest, 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 |
Field Detail |
---|
static final int PERCENT_100
protected boolean enabled
Constructor Detail |
---|
public MemoryMonitorTest()
public MemoryMonitorTest(String name)
Method Detail |
---|
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
public void testDeltaUsage() throws Exception
Exception
public void _testQuery() throws Exception
Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |