|
||||||||||
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.repl.HistoryTest
public final class HistoryTest
Tests the functionality of the repl History.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface edu.rice.cs.drjava.config.OptionConstants |
---|
OptionConstants.AccessLevelChoices, OptionConstants.DefaultFont, OptionConstants.HeapSizeChoices, OptionConstants.LookAndFeels, OptionConstants.PlasticThemes, OptionConstants.VersionNotificationChoices |
Field Summary |
---|
Fields inherited from class edu.rice.cs.drjava.DrJavaTestCase |
---|
TEST_DRJAVA_CONFIG_PROPERTY |
Constructor Summary | |
---|---|
HistoryTest()
|
Method Summary | |
---|---|
void |
setUp()
Initialize fields for each test. |
void |
tearDown()
Cleans up temporary files and tries to free used variables after each test. |
void |
testCanMoveToEmptyAtEnd()
|
void |
testGetHistoryAsString()
Tests the getHistoryAsString() method. |
void |
testHistoryIsBounded()
Ensures that Histories are bound to 500 entries. |
void |
testLiveUpdateOfHistoryMaxSize()
Tests that the history size can be updated, both through the config framework and the setMaxSize method. |
void |
testMultipleInsert()
|
void |
testNoMatch()
Tests that if "tab completion" does not find a match, then cursor goes back to "end". |
void |
testOriginalCopyRemains()
Tests that the original copy of an edited entry remains in the history. |
void |
testRemembersMultipleEditedEntries()
Tests that the history remembers multiple edited entries for the given command. |
void |
testRemembersOneEditedEntry()
Tests that the history remembers one edited entry for the given command. |
void |
testReverseSearchTwice()
Tests reverse searching twice. |
void |
testSaveAsExistsForOverwrite()
Tests that the history doesn't overwrite files without prompting. |
void |
testSearchHistory()
Tests that the tab completion of the most recent entry is correct. |
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 |
Constructor Detail |
---|
public HistoryTest()
Method Detail |
---|
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
tearDown
in class DrJavaTestCase
Exception
public void testSaveAsExistsForOverwrite() throws IOException
IOException
public void testMultipleInsert()
public void testCanMoveToEmptyAtEnd()
public void testHistoryIsBounded()
public void testLiveUpdateOfHistoryMaxSize()
public void testGetHistoryAsString()
public void testRemembersOneEditedEntry()
public void testRemembersMultipleEditedEntries()
public void testOriginalCopyRemains()
public void testSearchHistory()
public void testNoMatch()
public void testReverseSearchTwice()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |