|
||||||||||
| 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.DefinitionsPaneTest
public final class DefinitionsPaneTest
Tests the Definitions Pane
| Nested Class Summary | |
|---|---|
(package private) static class |
DefinitionsPaneTest.KeyTestListener
|
| Nested classes/interfaces inherited from class junit.framework.TestCase |
|---|
junit.framework.TestCase.WrappedException |
| Field Summary | |
|---|---|
private MainFrame |
_frame
|
static Log |
_log
|
private int |
_redoPos
|
private String |
_result
|
private static int |
ALT
|
private static int |
BANG
|
private static int |
DEL_NEXT
|
private static int |
DEL_PREV
|
private static int |
M_MASK
|
private static int |
META
|
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
|
private static int |
W
|
| Fields inherited from class edu.rice.cs.drjava.model.MultiThreadedTestCase |
|---|
_testFailed |
| Constructor Summary | |
|---|---|
DefinitionsPaneTest()
|
|
| Method Summary | |
|---|---|
protected void |
_assertDocumentContents(DJDocument doc,
String contents,
String message)
|
protected void |
_assertDocumentEmpty(DJDocument doc,
String message)
|
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). |
void |
testActiveAndInactive()
|
void |
testBackspace()
|
void |
testFrenchKeyStrokes()
This testcase checks that we do no longer discard Alt keys that would be used to make the {,},[,] chars that the French keyboards has. |
void |
testGranularUndo()
|
void |
testMatchBraceText()
Tests the functionality that allows brace matching that displays the line matched in the status bar |
void |
testMetaKeyPress()
Tests that a simulated key press with the meta modifier is correct. |
void |
testMultilineCommentOrUncommentAfterScroll()
Tests that undoing/redoing a multi-line comment/uncomment will restore the caret position |
void |
testShiftBackspace()
Tests that shift backspace works the same as backspace. |
void |
testTypeBraceNotInCode()
Tests that typing a brace in a string/comment does not cause an indent. |
void |
testTypeEnterNotInCode()
Tests that typing Enter in a string/comment does cause an indent. |
| 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 |
|---|
private volatile MainFrame _frame
public static final Log _log
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
private static final int META
private static final int W
private static final int M_MASK
private static final int BANG
private static final int ALT
private static final int DEL_NEXT
private static final int DEL_PREV
private int _redoPos
private volatile String _result
| Constructor Detail |
|---|
public DefinitionsPaneTest()
| Method Detail |
|---|
public void setUp()
throws Exception
setUp in class MultiThreadedTestCaseException - 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 MultiThreadedTestCaseException
public void testShiftBackspace()
throws BadLocationException
BadLocationException
public void testTypeBraceNotInCode()
throws BadLocationException
BadLocationException
public void testTypeEnterNotInCode()
throws BadLocationException,
InterruptedException,
InvocationTargetException
BadLocationException
InterruptedException
InvocationTargetException
public void testMetaKeyPress()
throws BadLocationException
BadLocationException
public void testMultilineCommentOrUncommentAfterScroll()
throws BadLocationException
BadLocationException
protected void _assertDocumentEmpty(DJDocument doc,
String message)
protected void _assertDocumentContents(DJDocument doc,
String contents,
String message)
public void testGranularUndo()
throws BadLocationException
BadLocationExceptionpublic void testActiveAndInactive()
public void testFrenchKeyStrokes()
throws IOException,
InterruptedException
IOException
InterruptedExceptionpublic void testBackspace()
public void testMatchBraceText()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||