|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
edu.rice.cs.drjava.DrJavaTestCase
edu.rice.cs.drjava.model.cache.DocumentCacheTest
public class DocumentCacheTest
This used to extend GlobalModelTestCase, but now it extends just TestCase. Perhaps it should be changed back.
Field Summary | |
---|---|
protected File |
_tempDir
|
Fields inherited from class edu.rice.cs.drjava.DrJavaTestCase |
---|
TEST_DRJAVA_CONFIG_PROPERTY |
Constructor Summary | |
---|---|
DocumentCacheTest()
|
Method Summary | |
---|---|
protected void |
createModel()
Instantiates the GlobalModel to be used in the test cases. |
protected OpenDefinitionsDocument |
openFile(File f)
|
void |
setUp()
Set up for every test. |
void |
tearDown()
Clean up for every test case. |
protected File |
tempFile()
Create a new temporary file in _tempDir. |
protected File |
tempFile(int i)
Create a new temporary file in _tempDir. |
void |
testCacheSize()
A good warmup test case. |
void |
testGetDDocFromCache()
|
void |
testMemoryLeak()
There used to be a memory leak where various listeners, LeafElements, and other extraneous references from the model, definitions pane, and main frame would be preventing the definitions panes/documents from being GC'd at the correct times causing the entire program to run out of heap space when working with large numbers of files. |
void |
testNewDocumentsInAndOutOfTheCache()
|
void |
testNoDDocInCache()
|
void |
testNumListeners()
|
void |
testOldDocumentsInAndOutOfTheCache()
|
Methods inherited from class edu.rice.cs.drjava.DrJavaTestCase |
---|
setConfigSetting, setDocText |
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, failNotEquals, failNotSame, failSame, format |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected File _tempDir
Constructor Detail |
---|
public DocumentCacheTest()
Method Detail |
---|
public void setUp() throws Exception
DrJavaTestCase
setUp
in class DrJavaTestCase
Exception
- This convention is mandated by JUnit.TestCase, the superclass of this class.public void tearDown() throws Exception
DrJavaTestCase
tearDown
in class DrJavaTestCase
Exception
protected void createModel()
protected File tempFile() throws IOException
IOException
protected File tempFile(int i) throws IOException
IOException
protected OpenDefinitionsDocument openFile(File f) throws IOException
IOException
public void testCacheSize()
public void testNewDocumentsInAndOutOfTheCache() throws BadLocationException, IOException
BadLocationException
IOException
public void testOldDocumentsInAndOutOfTheCache() throws BadLocationException, IOException
BadLocationException
IOException
public void testGetDDocFromCache() throws BadLocationException, IOException, OperationCanceledException
BadLocationException
IOException
OperationCanceledException
public void testNoDDocInCache()
public void testNumListeners()
public void testMemoryLeak() throws InterruptedException, IOException
Adam and Jonathan went through great pains to remove these references, so don't break our work!!!
InterruptedException
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |