|
||||||||||
| 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.GlobalModelOtherTest
public final class GlobalModelOtherTest
A test on the GlobalModel that does deals with everything outside of simple file operations, e.g., compile, quit.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class junit.framework.TestCase |
|---|
TestCase.WrappedException |
| Field Summary | |
|---|---|
(package private) Log |
_log
|
private static java.lang.String |
FOO_CLASS
|
| Fields inherited from class edu.rice.cs.drjava.model.GlobalModelTestCase |
|---|
_doc, _interactionsController, _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 |
| Constructor Summary | |
|---|---|
GlobalModelOtherTest()
|
|
| Method Summary | |
|---|---|
private java.io.File |
makeCanonical(java.io.File f)
Get the canonical name of a file. |
void |
testBookmark()
|
void |
testExitInteractions()
Checks that System.exit is handled appropriately from interactions pane. |
void |
testGetMultipleSourceRootsDefaultPackage()
|
void |
testGetSourceRootDefaultPackage()
|
void |
testGetSourceRootPackageOneDeepValid()
|
void |
testGetSourceRootPackageThreeDeepInvalid()
|
void |
testGetSourceRootPackageThreeDeepValid()
|
void |
testGetSourceRootPackageThreeDeepValidRelative()
Tests that getSourceRoot works with a relative path when a package name is present. |
void |
testInteractionsCanSeeChangedClass()
Checks that updating a class and recompiling it is visible from the REPL. |
void |
testInteractionsCanSeeCompiledClasses()
Creates a new class, compiles it and then checks that the REPL can see it. |
void |
testInteractionsDefineAnonymousInnerClass()
Checks that an anonymous inner class can be defined in the repl! |
void |
testInteractionsLiveUpdateClassPath()
Creates a new class, compiles it and then checks that the REPL can see it. |
void |
testInteractionsVariableWithLowercaseClassName()
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). |
void |
testRunMainMethod()
|
void |
testSwitchInterpreters()
Tests that the appropriate event is fired when the model's interpreter changes. |
void |
testUndoEventsOccur()
Tests that the undoableEditHappened event is fired if the undo manager is in use. |
| Methods inherited from class edu.rice.cs.drjava.model.MultiThreadedTestCase |
|---|
join, listenerFail, 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 |
| Field Detail |
|---|
Log _log
private static final java.lang.String FOO_CLASS
| Constructor Detail |
|---|
public GlobalModelOtherTest()
| Method Detail |
|---|
private java.io.File makeCanonical(java.io.File f)
public void testUndoEventsOccur()
public void testExitInteractions()
throws EditDocumentException,
java.lang.InterruptedException
EditDocumentException
java.lang.InterruptedException
public void testInteractionsCanSeeCompiledClasses()
throws javax.swing.text.BadLocationException,
EditDocumentException,
java.io.IOException,
java.lang.InterruptedException
javax.swing.text.BadLocationException
EditDocumentException
java.io.IOException
java.lang.InterruptedException
public void testInteractionsVariableWithLowercaseClassName()
throws javax.swing.text.BadLocationException,
EditDocumentException,
java.io.IOException,
java.lang.InterruptedException
javax.swing.text.BadLocationException
EditDocumentException
java.io.IOException
java.lang.InterruptedException
public void testInteractionsCanSeeChangedClass()
throws javax.swing.text.BadLocationException,
EditDocumentException,
java.io.IOException,
java.lang.InterruptedException
javax.swing.text.BadLocationException
EditDocumentException
java.io.IOException
java.lang.InterruptedException
public void testInteractionsDefineAnonymousInnerClass()
throws javax.swing.text.BadLocationException,
EditDocumentException,
java.io.IOException,
java.lang.InterruptedException
javax.swing.text.BadLocationException
EditDocumentException
java.io.IOException
java.lang.InterruptedException
public void testGetSourceRootDefaultPackage()
throws javax.swing.text.BadLocationException,
java.io.IOException
javax.swing.text.BadLocationException
java.io.IOException
public void testGetSourceRootPackageThreeDeepValid()
throws javax.swing.text.BadLocationException,
java.io.IOException
javax.swing.text.BadLocationException
java.io.IOException
public void testGetSourceRootPackageThreeDeepValidRelative()
throws javax.swing.text.BadLocationException,
java.io.IOException
javax.swing.text.BadLocationException
java.io.IOException
public void testGetSourceRootPackageThreeDeepInvalid()
throws javax.swing.text.BadLocationException,
java.io.IOException
javax.swing.text.BadLocationException
java.io.IOException
public void testGetSourceRootPackageOneDeepValid()
throws javax.swing.text.BadLocationException,
java.io.IOException
javax.swing.text.BadLocationException
java.io.IOException
public void testGetMultipleSourceRootsDefaultPackage()
throws javax.swing.text.BadLocationException,
java.io.IOException
javax.swing.text.BadLocationException
java.io.IOException
public void testInteractionsLiveUpdateClassPath()
throws javax.swing.text.BadLocationException,
EditDocumentException,
java.io.IOException,
java.lang.InterruptedException
javax.swing.text.BadLocationException
EditDocumentException
java.io.IOException
java.lang.InterruptedExceptionpublic void testSwitchInterpreters()
public void testRunMainMethod()
throws java.lang.Exception
java.lang.Exception
public void testBookmark()
throws java.lang.Exception
java.lang.Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||