|
||||||||||
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.ui.RecentFileManagerTest
public final class RecentFileManagerTest
Test functions of RecentFileManager.
Field Summary | |
---|---|
protected File |
_tempDir
|
protected static String |
BAR_TEXT
|
protected static String |
FOO_TEXT
|
Fields inherited from class edu.rice.cs.drjava.DrJavaTestCase |
---|
TEST_DRJAVA_CONFIG_PROPERTY |
Constructor Summary | |
---|---|
RecentFileManagerTest()
|
Method Summary | |
---|---|
void |
setUp()
Setup method for each JUnit test case. |
static Test |
suite()
Creates a test suite for JUnit to run. |
void |
tearDown()
Clean up for every test case. |
protected File |
tempFile()
Create a new temporary file in _tempDir. |
void |
testAddMoreThanMaxSize()
Tests that the size of the recent files list doesn't get bigger than the maximum size. |
void |
testDirectoryFilterDescription()
Verifies that the presentation names for the directory filter are correct. |
void |
testRemoveFile()
Tests that files are removed correctly from the list. |
void |
testReopenFiles()
Tests that the list is re-ordered correctly after a file is re-opened, even if it has a different path. |
void |
testShrinksToMaxSize()
Tests that the size of the recent files list is reduced in response to a decrease in max size. |
protected File |
writeToNewTempFile(String text)
Creates a new temporary file and writes the given text to it. |
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 static final String FOO_TEXT
protected static final String BAR_TEXT
protected File _tempDir
Constructor Detail |
---|
public RecentFileManagerTest()
Method Detail |
---|
public static Test suite()
public void setUp() throws Exception
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 File tempFile() throws IOException
IOException
protected File writeToNewTempFile(String text) throws IOException
IOException
public void testAddMoreThanMaxSize() throws IOException
IOException
public void testShrinksToMaxSize() throws IOException
IOException
public void testRemoveFile() throws Exception
Exception
public void testReopenFiles() throws Exception
Exception
public void testDirectoryFilterDescription()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |