|
||||||||||
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.
Field Summary | |
---|---|
protected InteractionsDJDocument |
_adapter
|
protected InteractionsController |
_controller
|
protected InteractionsDocument |
_doc
|
protected InteractionsModel |
_model
|
protected InteractionsPane |
_pane
|
Fields inherited from class edu.rice.cs.drjava.DrJavaTestCase |
---|
TEST_DRJAVA_CONFIG_PROPERTY |
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()
|
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 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 DrJavaTestCase
Exception
- This convention is mandated by JUnit.TestCase, the superclass of this class.public void tearDown() throws Exception
DrJavaTestCase
tearDown
in class DrJavaTestCase
Exception
public void testInitialPosition()
public void testCaretMovementCyclesWhenAtPrompt() throws EditDocumentException
EditDocumentException
public void testCaretMovementCyclesWhenAtEnd() throws EditDocumentException
EditDocumentException
public 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
EditDocumentException
public void testSystemIn()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |