|
||||||||||
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.MultiThreadedTestCase
edu.rice.cs.drjava.model.GlobalModelTestCase
edu.rice.cs.drjava.model.GlobalModelIOTest
public final class GlobalModelIOTest
Test I/O functions of the global model. TODO: move document observations to event thread.
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.model.GlobalModelTestCase |
---|
_doc, _interactionsController, _log, _model, _tempDir, BAR_TEXT, BAZ_TEXT, FOO_MISSING_CLOSE_TEXT, FOO_PACKAGE_AFTER_IMPORT, FOO_PACKAGE_AS_FIELD, FOO_PACKAGE_AS_FIELD_2, FOO_PACKAGE_AS_PART_OF_FIELD, FOO_PACKAGE_INSIDE_CLASS, FOO_TEXT |
Fields inherited from class edu.rice.cs.drjava.model.MultiThreadedTestCase |
---|
_testFailed |
Fields inherited from class edu.rice.cs.drjava.DrJavaTestCase |
---|
TEST_DRJAVA_CONFIG_PROPERTY |
Constructor Summary | |
---|---|
GlobalModelIOTest()
|
Method Summary | |
---|---|
void |
testCancelFirstSave()
Attempts to make the first save of a document, but cancels instead. |
void |
testCancelOpenFile()
Initiates a file open, but cancels. |
void |
testCancelOpenMultipleFiles()
Initiates a file open, but cancels. |
void |
testCancelSaveAlreadySaved()
Saves the document with FOO_TEXT and then saves over the old text, passing in a CancelingSelector to cancel if we are asked for a new file name. |
void |
testCancelSaveAsAlreadySaved()
Make sure that saveAs doesn't save if we cancel! |
void |
testCloseFileAllowAbandon()
Creates a new document, modifies it, then allows it to be closed, ignoring the changes made. |
void |
testCloseFileDisallowAbandon()
Creates a new document, modifies it, but disallows a call to close it without saving changes. |
void |
testCloseMultipleFiles()
Ensures closing documents works correctly. |
void |
testConsoleInput()
Tests that input can be written to and read from the console correctly. |
void |
testFileMovedWhenTriedToSave()
Test for the possibility that the file has been moved or deleted since it was last referenced |
void |
testForceFileOpen()
Force a file to be opened with getDocumentforFile. |
void |
testLoadHistoryWithAndWithoutSemicolons()
Loads two history files, one whose statements end in semicolons, and one whose statements do not. |
void |
testModifiedByOther()
|
void |
testModifiedByOtherFalse()
|
void |
testMultipleFiles()
Creates a new document, modifies it, and then does the same with a second document, checking for inteference. |
void |
testMultipleFilesArray()
Opens several documents and ensures that the array returned by the model is correct and in the right order. |
void |
testOpenMultipleFiles()
Opens multiple files. |
void |
testOpenMultipleFilesError()
Error checking for openening multiple files checks for null and an array w/null. |
void |
testOpenMultipleNonexistentFiles()
Attempts to open a non-existent file. |
void |
testOpenNonexistentFile()
Attempts to open a non-existent file. |
void |
testOpenRealFile()
Opens a file. |
void |
testRealSaveFirstSave()
Makes a first save of the current document. |
void |
testReopenFile()
Attempts to reopen an already open file. |
void |
testRevertFile()
Forces a file to be opened with getDocumentforFile. |
void |
testSaveAllSaveCorrectFiles()
Ensures that all open files are saved in appropriate order, i.e., even with BAR file as active document, save all should first prompt to save FOO, then BAR. |
void |
testSaveAlreadySaved()
Saves a file already saved and overwrites its contents. |
void |
testSaveAsAlreadySaved()
Ensures that saveAs saves to a different file. |
void |
testSaveAsExistsAndOpen()
|
void |
testSaveAsExistsForOverwrite()
|
void |
testSaveClearAndLoadHistory()
Interprets some statements, saves the history, clears the history, then loads the history. |
Methods inherited from class edu.rice.cs.drjava.model.MultiThreadedTestCase |
---|
join, listenerFail, wait |
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 GlobalModelIOTest()
Method Detail |
---|
public void testMultipleFiles() throws BadLocationException
BadLocationException
public void testMultipleFilesArray() throws BadLocationException
BadLocationException
public void testCloseMultipleFiles() throws BadLocationException
BadLocationException
public void testCloseFileAllowAbandon() throws BadLocationException
BadLocationException
public void testCloseFileDisallowAbandon() throws BadLocationException
BadLocationException
public void testOpenRealFile() throws BadLocationException, IOException
BadLocationException
IOException
public void testCancelOpenFile() throws BadLocationException, IOException
BadLocationException
IOException
public void testOpenNonexistentFile() throws IOException
IOException
public void testReopenFile() throws BadLocationException, IOException
BadLocationException
IOException
public void testOpenMultipleFiles() throws BadLocationException, IOException
BadLocationException
IOException
public void testCancelOpenMultipleFiles() throws BadLocationException, IOException
BadLocationException
IOException
public void testOpenMultipleNonexistentFiles() throws IOException
IOException
public void testOpenMultipleFilesError()
public void testForceFileOpen() throws BadLocationException, IOException, OperationCanceledException, AlreadyOpenException
BadLocationException
IOException
OperationCanceledException
AlreadyOpenException
public void testCancelFirstSave() throws BadLocationException, IOException
BadLocationException
IOException
public void testRealSaveFirstSave() throws BadLocationException, IOException
BadLocationException
IOException
public void testSaveAlreadySaved() throws Exception
Exception
public void testCancelSaveAlreadySaved() throws BadLocationException, IOException
BadLocationException
IOException
public void testCancelSaveAsAlreadySaved() throws BadLocationException, IOException
BadLocationException
IOException
public void testSaveAsAlreadySaved() throws BadLocationException, IOException
BadLocationException
IOException
public void testSaveAsExistsForOverwrite() throws BadLocationException, IOException
BadLocationException
IOException
public void testSaveAsExistsAndOpen() throws BadLocationException, IOException
BadLocationException
IOException
public void testSaveAllSaveCorrectFiles() throws BadLocationException, IOException
BadLocationException
IOException
public void testRevertFile() throws BadLocationException, IOException, OperationCanceledException, AlreadyOpenException
BadLocationException
IOException
OperationCanceledException
AlreadyOpenException
public void testModifiedByOther() throws BadLocationException, IOException, OperationCanceledException, AlreadyOpenException, InterruptedException
BadLocationException
IOException
OperationCanceledException
AlreadyOpenException
InterruptedException
public void testModifiedByOtherFalse() throws BadLocationException, IOException, OperationCanceledException, AlreadyOpenException, InterruptedException
BadLocationException
IOException
OperationCanceledException
AlreadyOpenException
InterruptedException
public void testSaveClearAndLoadHistory() throws EditDocumentException, IOException, InterruptedException
EditDocumentException
IOException
InterruptedException
public void testLoadHistoryWithAndWithoutSemicolons() throws IOException, EditDocumentException, InterruptedException
IOException
EditDocumentException
InterruptedException
public void testFileMovedWhenTriedToSave() throws BadLocationException, IOException
BadLocationException
IOException
public void testConsoleInput() throws EditDocumentException
EditDocumentException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |