|
||||||||||
| 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.ui.InteractionsPaneTest
public final class InteractionsPaneTest
Test functions of InteractionsPane.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class junit.framework.TestCase |
|---|
TestCase.WrappedException |
| Field Summary | |
|---|---|
protected InteractionsDJDocument |
_adapter
|
protected InteractionsController |
_controller
|
protected InteractionsDocument |
_doc
|
protected InteractionsModel |
_model
|
protected InteractionsPane |
_pane
|
private static int |
PRESSED
|
private static int |
RELEASED
|
private static int |
SHIFT
|
private static int |
TYPED
|
private static char |
UNDEFINED
|
private static int |
VK_UNDEF
|
| Constructor Summary | |
|---|---|
InteractionsPaneTest()
|
|
| Method Summary | |
|---|---|
void |
setUp()
Setup method for each JUnit test case. |
void |
tearDown()
Clean up for every test case. |
void |
testCannotEditBeforePrompt()
Tests that the InteractionsPane cannot be edited before the prompt. |
void |
testCaretMovementCyclesWhenAtEnd()
Tests that moving the caret right when it's already at the end will cycle it to the prompt. |
void |
testCaretMovementCyclesWhenAtPrompt()
Tests that moving the caret left when it's already at the prompt will cycle it to the end of the line. |
void |
testCaretMovesUpToPromptAfterInsert()
Tests that the caret catches up to the prompt if it is before it and output is displayed. |
void |
testCaretStaysAtEndDuringInteraction()
|
void |
testCaretUpdatedOnInsert()
Tests that the caret is put in the correct position after an insert. |
void |
testClearCurrentInteraction()
Tests that the caret is moved properly when the current interaction is cleared. |
void |
testHistoryRecallNextMovesToEnd()
Tests that moving the caret down (recalling the next command from history) will move the caret to the end of the document. |
void |
testHistoryRecallPrevMovesToEnd()
Tests that moving the caret up (recalling the previous command from history) will move the caret to the end of the document. |
void |
testInitialPosition()
Tests that this.setUp() puts the caret in the correct position. |
void |
testLeftBeforePromptMovesToPrompt()
Tests that moving the caret left when it's before the prompt will cycle it to the prompt. |
void |
testRightBeforePromptMovesToEnd()
Tests that moving the caret right when it's before the prompt will cycle it to the end of the document. |
void |
testSystemIn_NOJOIN()
|
void |
testUndoRedoNewLine()
Tests to see if SHIFT_ENTER starts a new undo action |
void |
testUndoRedoWorks()
Tests basic functionality of undo/redo |
| 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 |
|---|
private static final char UNDEFINED
private static final int PRESSED
private static final int RELEASED
private static final int SHIFT
private static final int TYPED
private static final int VK_UNDEF
protected volatile InteractionsDJDocument _adapter
protected volatile InteractionsModel _model
protected volatile InteractionsDocument _doc
protected volatile InteractionsPane _pane
protected volatile InteractionsController _controller
| Constructor Detail |
|---|
public InteractionsPaneTest()
| Method Detail |
|---|
public void setUp()
throws Exception
setUp in class DrJavaTestCaseException - This convention is mandated by JUnit.TestCase, the superclass of this class.
public void tearDown()
throws Exception
DrJavaTestCase
tearDown in class DrJavaTestCaseExceptionpublic void testInitialPosition()
public void testCaretMovementCyclesWhenAtPrompt()
throws EditDocumentException
EditDocumentException
public void testCaretMovementCyclesWhenAtEnd()
throws EditDocumentException
EditDocumentExceptionpublic void testLeftBeforePromptMovesToPrompt()
public void testRightBeforePromptMovesToEnd()
public void testHistoryRecallPrevMovesToEnd()
public void testHistoryRecallNextMovesToEnd()
public void testCaretStaysAtEndDuringInteraction()
throws EditDocumentException
EditDocumentException
public void testCaretMovesUpToPromptAfterInsert()
throws EditDocumentException
EditDocumentException
public void testClearCurrentInteraction()
throws EditDocumentException
EditDocumentException
public void testCannotEditBeforePrompt()
throws EditDocumentException
EditDocumentException
public void testCaretUpdatedOnInsert()
throws EditDocumentException
EditDocumentExceptionpublic void testSystemIn_NOJOIN()
public void testUndoRedoWorks()
public void testUndoRedoNewLine()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||