edu.rice.cs.drjava.model.junit
Class JUnitErrorModelTest
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.junit.JUnitErrorModelTest
- All Implemented Interfaces:
- Test
public final class JUnitErrorModelTest
- extends GlobalModelTestCase
A test on the GlobalModel for JUnit testing.
- Version:
- $Id: JUnitErrorModelTest.java 4691 2008-12-02 23:33:27Z dlsmith $
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.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, 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 |
JUnitErrorModelTest
public JUnitErrorModelTest()
testErrorsArrayInOrder
public void testErrorsArrayInOrder()
throws Exception
- Tests that the errors array contains all encountered failures and error in the right order.
- Throws:
Exception
testVerifyErrorHandledCorrectly
public void testVerifyErrorHandledCorrectly()
throws Exception
- Tests that a VerifyError is reported as an error, rather than
simply causing JUnit to blow up. Note that this test will hang if
the error is not reported correctly, because the JUnitTestManager will
blow up in the other JVM and never notify us that it's finished.
- Throws:
Exception
testLanguageLevelJUnitErrorLine
public void testLanguageLevelJUnitErrorLine()
throws Exception
- Tests that an elementary level file has the previous line of the actual error reported as the line of its error.
Necessitated by the added code in the .java file associated with the .dj0 file (the import statement added by the
language level compiler)
- Throws:
Exception
testErrorInSuperClass
public void testErrorInSuperClass()
throws Exception
- Test errors that occur in superclass.
- Throws:
Exception