| edu.rice.cs.drjava.DrJavaTestCase edu.rice.cs.drjava.model.cache.DocumentCacheTest
DocumentCacheTest | public class DocumentCacheTest extends DrJavaTestCase (Code) | | This used to extend GlobalModelTestCase, but now it extends just TestCase. Perhaps it should be changed back.
|
createModel | protected void createModel()(Code) | | Instantiates the GlobalModel to be used in the test cases.
|
tempFile | protected File tempFile(int i) throws IOException(Code) | | Create a new temporary file in _tempDir. Calls with the same
int will return the same filename, while calls with different
ints will return different filenames.
|
testCacheSize | public void testCacheSize()(Code) | | A good warmup test case.
|
testMemoryLeak | public void testMemoryLeak() throws InterruptedException, IOException(Code) | | 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. This problem was
agrivated when we added project facility and implemented
the document cache (which was supposed to solve our memory
problem but actually worsened it).
Adam and Jonathan went through great pains to remove
these references, so don't break our work!!!
|
testNoDDocInCache | public void testNoDDocInCache()(Code) | | |
testNumListeners | public void testNumListeners()(Code) | | |
Fields inherited from edu.rice.cs.drjava.DrJavaTestCase | final public static String TEST_DRJAVA_CONFIG_PROPERTY(Code)(Java Doc)
|
|
|