|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
org.jboss.test.JBossMemoryTestCase
A Regular MemoryTestCase not using any container side.
Constructor Summary | |
JBossMemoryTestCase()
|
|
JBossMemoryTestCase(String name)
|
Method Summary | |
protected void |
checkUnload(WeakReference weakReferenceOnLoader,
String className,
String reportHTMLFile)
If you started your class with -agentlib:jbossAgent in case of leakage (if className still loaded) a file (reportFile) will be created, and a heapSnapshot(./snapshot,mem) |
protected void |
clearEverySingleFieldOnInstances(String className)
This method could be used for debug purposes |
protected static ClassLoader |
newClassLoader(Class anyUserClass)
|
Methods inherited from class junit.framework.TestCase |
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, 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 |
Constructor Detail |
public JBossMemoryTestCase()
public JBossMemoryTestCase(String name)
Method Detail |
protected static ClassLoader newClassLoader(Class anyUserClass) throws Exception
Exception
protected void checkUnload(WeakReference weakReferenceOnLoader, String className, String reportHTMLFile) throws Exception
weakReferenceOnLoader
- A weakReference to the created ClassLoader. If there is no references to this classLoader this reference will be clearedclassName
- The class name supposed to be unloade.
Exception
protected void clearEverySingleFieldOnInstances(String className)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |