edu.rice.cs.drjava.model
Class GlobalModelCompileIOTest
java.lang.Object
junit.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.GlobalModelCompileIOTest
- All Implemented Interfaces:
- Test
public final class GlobalModelCompileIOTest
- extends GlobalModelTestCase
Tests to ensure that compilation interacts with files correctly.
- Version:
- $Id: GlobalModelCompileIOTest.java 5175 2010-01-20 08:46:32Z mgricken $
| Nested classes/interfaces inherited from class edu.rice.cs.drjava.model.GlobalModelTestCase |
GlobalModelTestCase.CancelingSelector, GlobalModelTestCase.CompileShouldFailListener, GlobalModelTestCase.CompileShouldSucceedListener, GlobalModelTestCase.FileMovedWarningException, GlobalModelTestCase.FileSelector, GlobalModelTestCase.InteractionListener, GlobalModelTestCase.JUnitNonTestListener, GlobalModelTestCase.JUnitTestListener, GlobalModelTestCase.OpenWarningException, GlobalModelTestCase.OverwriteException, GlobalModelTestCase.SaveCopyFileSelector, GlobalModelTestCase.TestGlobalModel, GlobalModelTestCase.TestListener, GlobalModelTestCase.WarningFileSelector |
| 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 |
| Methods inherited from class edu.rice.cs.drjava.model.GlobalModelTestCase |
assertCompileErrorsPresent, assertCompileErrorsPresent, assertContents, assertInteractionsContains, assertInteractionsDoesNotContain, assertInteractionsDoesNotMatch, assertInteractionsMatches, assertLength, assertModified, assertNumOpenDocs, changeDocumentText, classForJava, createFile, doCompile, doCompile, getCompilerErrorString, getInteractionsText, interpret, interpretIgnoreResult, safeLoadHistory, safeSaveHistory, saveAllFiles, saveFile, saveFileAs, saveFileCopy, setUp, setupDocument, tearDown, tempDirectory, tempFile, tempFile, testStartCompile, writeToNewTempFile |
| 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 |
GlobalModelCompileIOTest
public GlobalModelCompileIOTest()
testClassFileSynchronization
public void testClassFileSynchronization()
throws javax.swing.text.BadLocationException,
java.io.IOException,
java.lang.InterruptedException
- After creating a new file, saving, and compiling it, this test checks that the new document is in sync after
compiling and is out of sync after modifying and even saving it.
Doesn't reset interactions because no interpretations are performed.
- Throws:
javax.swing.text.BadLocationException
java.io.IOException
java.lang.InterruptedException
testClassFileSynchronizationAfterRename
public void testClassFileSynchronizationAfterRename()
throws javax.swing.text.BadLocationException,
java.io.IOException,
java.lang.IllegalStateException,
java.lang.InterruptedException
- Ensure that renaming a file makes it out of sync with its class file.
Doesn't reset interactions because no interpretations are performed.
- Throws:
javax.swing.text.BadLocationException
java.io.IOException
java.lang.IllegalStateException
java.lang.InterruptedException
testCompileAfterFileMoved
public void testCompileAfterFileMoved()
throws javax.swing.text.BadLocationException,
java.io.IOException
- Tests a compile after a file has unexpectedly been moved or delete.
- Throws:
javax.swing.text.BadLocationException
java.io.IOException