|
||||||||||
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
Field Summary | |
---|---|
static Log |
_log
|
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 | |
---|---|
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 |
testDocumentPaneMemoryLeak()
|
void |
testFrenchKeyStrokes()
|
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, 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 |
---|
public static final Log _log
Constructor Detail |
---|
public DefinitionsPaneTest()
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 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
BadLocationException
public void testActiveAndInactive()
public void testDocumentPaneMemoryLeak() throws InterruptedException, IOException
InterruptedException
IOException
public void testFrenchKeyStrokes() throws IOException, InterruptedException
IOException
InterruptedException
public void testBackspace()
public void testMatchBraceText()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |