|
||||||||||
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.ui.MainFrameTest
public final class MainFrameTest
Test functions of MainFrame.
Field Summary | |
---|---|
protected boolean |
_closeDone
|
protected Object |
_closeLock
|
protected boolean |
_compileDone
|
protected Object |
_compileLock
|
protected boolean |
_openDone
|
protected Object |
_openLock
|
Fields inherited from class edu.rice.cs.drjava.model.MultiThreadedTestCase |
---|
_testFailed |
Fields inherited from class edu.rice.cs.drjava.DrJavaTestCase |
---|
TEST_DRJAVA_CONFIG_PROPERTY |
Constructor Summary | |
---|---|
MainFrameTest()
|
Method Summary | |
---|---|
void |
setUp()
Setup method for each JUnit test case. |
void |
tearDown()
If any test failed, print a message saying that some test failed in another thread (not the testing thread). |
protected File |
tempFile(String fileName)
Create a new temporary file in _tempDir. |
void |
testClearLine()
Tests that the clipboard is unmodified after a "clear line" action. |
void |
testCorrectInteractionsDocument()
Make sure that the InteractionsPane is displaying the correct InteractionsDocument. |
void |
testCreateManualToolbarButton()
Tests that the returned JButton of createManualToolbarButton :
1. |
void |
testCutLine()
Tests that the clipboard is modified after a "cut line" action. |
void |
testDancingUIFileClosed()
A Test to guarantee that the Dancing UI bug will not rear its ugly head again. |
void |
testDancingUIFileOpened()
A Test to guarantee that the Dancing UI bug will not rear its ugly head again. |
void |
testDocLocationAfterSwitch()
Tests that the current location of a document is equal to the caret Position after switching to another document and back. |
void |
testGlassPaneEditableState()
Ensure that a document's editable status is set appropriately throughout the compile process. |
void |
testGlassPaneHidesKeyEvents()
Ensure that all key events are disabled when the glass pane is up. |
void |
testGotoFileUnderCursor()
Tests that "go to file under cursor" works if unique. |
void |
testGotoFileUnderCursorAppendJava()
Tests that "go to file under cursor" works if unique after appending ".java" |
void |
testGotoFileUnderCursorShowDialog()
Tests that "go to file under cursor" displays the dialog if choice is not unique |
void |
testMultilineIndentAfterScroll()
Tests that undoing/redoing a multi-line indent will restore the caret position. |
void |
testSaveButtonEnabled()
Tests that the save button does not set itself as enabled immediately after opening a file. |
Methods inherited from class edu.rice.cs.drjava.model.MultiThreadedTestCase |
---|
join, 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 |
---|
protected volatile boolean _openDone
protected final Object _openLock
protected volatile boolean _closeDone
protected final Object _closeLock
protected volatile boolean _compileDone
protected final Object _compileLock
Constructor Detail |
---|
public MainFrameTest()
Method Detail |
---|
public void setUp() throws Exception
setUp
in class MultiThreadedTestCase
Exception
- This convention is mandated by the JUnit TestCase class which is an ancestor of this class.public void tearDown() throws Exception
MultiThreadedTestCase
tearDown
in class MultiThreadedTestCase
Exception
public void testCreateManualToolbarButton()
createManualToolbarButton
:
1. Is disabled upon return.
2. Inherits the tooltip of the Action parameter a
.
public void testDocLocationAfterSwitch() throws BadLocationException
BadLocationException
public void testClearLine() throws BadLocationException, UnsupportedFlavorException, IOException
BadLocationException
UnsupportedFlavorException
IOException
public void testCutLine() throws BadLocationException
BadLocationException
public void testCorrectInteractionsDocument() throws EditDocumentException
EditDocumentException
public void testMultilineIndentAfterScroll() throws BadLocationException, InterruptedException
BadLocationException
InterruptedException
public void testGlassPaneEditableState()
public void testGlassPaneHidesKeyEvents()
public void testSaveButtonEnabled() throws IOException
IOException
public void testDancingUIFileOpened() throws IOException
IOException
public void testDancingUIFileClosed() throws IOException
IOException
protected File tempFile(String fileName) throws IOException
IOException
public void testGotoFileUnderCursor() throws IOException
IOException
public void testGotoFileUnderCursorAppendJava() throws IOException
IOException
public void testGotoFileUnderCursorShowDialog() throws IOException
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |