| edu.rice.cs.drjava.model.MultiThreadedTestCase edu.rice.cs.drjava.model.GlobalModelTestCase edu.rice.cs.drjava.model.GlobalModelOtherTest
GlobalModelOtherTest | final public class GlobalModelOtherTest extends GlobalModelTestCase implements OptionConstants(Code) | | A test on the GlobalModel that does deals with everything outside of simple file operations, e.g., compile, quit.
version: $Id: GlobalModelOtherTest.java 4255 2007-08-28 19:17:37Z mgricken $ |
testGetSourceRootPackageThreeDeepValidRelative | public void testGetSourceRootPackageThreeDeepValidRelative() throws BadLocationException, IOException(Code) | | Tests that getSourceRoot works with a relative path when a package name is present.
|
testInteractionAbort | public void testInteractionAbort() throws BadLocationException, EditDocumentException, InterruptedException, IOException(Code) | | Checks that the interpreter can be aborted and then work correctly later. Part of what we check here is that
the interactions classpath is correctly reset after aborting interactions. That is, we ensure that the compiled
class is still visible after aborting. This was broken in drjava-20020108-0958 -- or so I thought. I can't
consistently reproduce the problem in the UI (seems to show up using IBM's JDK only), and I can never reproduce
it in the test case. Grr. OK, now I found the explanation: We were in some cases running two new JVMs
on an abort. I fixed the problem in MainJVM#restartInterpreterJVM
The above method no longer exists... Does anyone remember what this meant? -nrh
|
testInteractionsCanSeeCompiledClasses | public void testInteractionsCanSeeCompiledClasses() throws BadLocationException, EditDocumentException, IOException, InterruptedException(Code) | | Creates a new class, compiles it and then checks that the REPL can see it. Then checks that a compiled class
file in another directory can be both accessed and extended if it is on the "extra.classpath" config option.
|
testInteractionsVariableWithLowercaseClassName | public void testInteractionsVariableWithLowercaseClassName() throws BadLocationException, EditDocumentException, IOException, InterruptedException(Code) | | Compiles a new class in the default package with a mixed case name, and ensures that it can be instantiated on a
variable with an identical name (but a lowercase first letter). Catches SF bug #689026 ("DynamicJava can't handle
certain variable names")
|
testSwitchInterpreters | public void testSwitchInterpreters()(Code) | | Tests that the appropriate event is fired when the model's interpreter changes.
|
testUndoEventsOccur | public void testUndoEventsOccur() throws BadLocationException(Code) | | Tests that the undoableEditHappened event is fired if the undo manager is in use.
|
Methods inherited from edu.rice.cs.drjava.model.GlobalModelTestCase | protected void assertCompileErrorsPresent(boolean b)(Code)(Java Doc) protected void assertCompileErrorsPresent(String name, boolean b)(Code)(Java Doc) protected void assertContents(String s, OpenDefinitionsDocument doc) throws BadLocationException(Code)(Java Doc) protected void assertInteractionsContains(String text) throws EditDocumentException(Code)(Java Doc) protected void assertInteractionsDoesNotContain(String text) throws EditDocumentException(Code)(Java Doc) protected void assertInteractionsDoesNotMatch(String regex) throws EditDocumentException(Code)(Java Doc) protected void assertInteractionsMatches(String regex) throws EditDocumentException(Code)(Java Doc) protected void assertLength(int len, OpenDefinitionsDocument doc)(Code)(Java Doc) protected void assertModified(boolean b, OpenDefinitionsDocument doc)(Code)(Java Doc) protected void assertNumOpenDocs(int num)(Code)(Java Doc) protected void changeDocumentText(String s, OpenDefinitionsDocument doc) throws BadLocationException(Code)(Java Doc) protected File classForJava(File sourceFile, String className)(Code)(Java Doc) protected File createFile(String name)(Code)(Java Doc) protected synchronized OpenDefinitionsDocument doCompile(String text, File file) throws IOException, BadLocationException, InterruptedException(Code)(Java Doc) protected void doCompile(OpenDefinitionsDocument doc, File file) throws IOException, InterruptedException(Code)(Java Doc) protected String getCompilerErrorString()(Code)(Java Doc) protected String getInteractionsText() throws EditDocumentException(Code)(Java Doc) protected String interpret(String input) throws EditDocumentException(Code)(Java Doc) protected void interpretIgnoreResult(String input) throws EditDocumentException(Code)(Java Doc) public void setUp() throws Exception(Code)(Java Doc) protected OpenDefinitionsDocument setupDocument(String text) throws BadLocationException(Code)(Java Doc) public void tearDown() throws Exception(Code)(Java Doc) protected File tempDirectory() throws IOException(Code)(Java Doc) protected File tempFile() throws IOException(Code)(Java Doc) protected File tempFile(int i) throws IOException(Code)(Java Doc) protected File writeToNewTempFile(String text) throws IOException(Code)(Java Doc)
|
Fields inherited from edu.rice.cs.drjava.model.MultiThreadedTestCase | protected static volatile boolean _testFailed(Code)(Java Doc)
|
|
|