edu.rice.cs.drjava.model
Class GlobalModelCompileSuccessTest
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.GlobalModelCompileSuccessTestCase
edu.rice.cs.drjava.model.GlobalModelCompileSuccessTest
- All Implemented Interfaces:
- Test
public final class GlobalModelCompileSuccessTest
- extends GlobalModelCompileSuccessTestCase
Tests to ensure that compilation succeeds when expected. Every test in this class is run for *each* of the
available compilers.
- Version:
- $Id: GlobalModelCompileSuccessTest.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_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 |
GlobalModelCompileSuccessTest
public GlobalModelCompileSuccessTest()
testCompileAllDifferentSourceRoots
public void testCompileAllDifferentSourceRoots()
throws BadLocationException,
IOException,
InterruptedException
- Tests calling compileAll with different source roots works.
- Throws:
BadLocationException
IOException
InterruptedException
testCompileClassPathOKDefaultPackage
public void testCompileClassPathOKDefaultPackage()
throws BadLocationException,
IOException,
InterruptedException
- Test that one compiled file can depend on the other and that when a keyword
is part of a field name, the file will compile.
We compile DrJavaTestFoo and then DrJavaTestFoo2 (which extends
DrJavaTestFoo). This shows that the compiler successfully found
DrJavaTestFoo2 when compiling DrJavaTestFoo.
Doesn't reset interactions because no interpretations are performed.
- Throws:
BadLocationException
IOException
InterruptedException
testCompileClassPathOKDifferentPackages
public void testCompileClassPathOKDifferentPackages()
throws BadLocationException,
IOException,
InterruptedException,
InvalidPackageException
- Test that one compiled file can depend on the other.
We compile a.DrJavaTestFoo and then b.DrJavaTestFoo2 (which extends
DrJavaTestFoo). This shows that the compiler successfully found
DrJavaTestFoo2 when compiling DrJavaTestFoo.
Doesn't reset interactions because no interpretations are performed.
- Throws:
BadLocationException
IOException
InterruptedException
InvalidPackageException