|
||||||||||
| 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.definitions.CommentTest
public final class CommentTest
Test the comment lines / uncomment lines functionality.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class junit.framework.TestCase |
|---|
TestCase.WrappedException |
| Field Summary | |
|---|---|
private java.lang.Integer |
_indentLevel
|
private GlobalEventNotifier |
_notifier
|
protected DefinitionsDocument |
doc
|
| Constructor Summary | |
|---|---|
CommentTest()
|
|
| Method Summary | |
|---|---|
private static void |
_assertContents(java.lang.String msg,
java.lang.String expected,
DJDocument document)
|
void |
setUp()
Resents configuration settings and sets up the indent level so that we can predict the correct behavior for indenting. |
void |
testCommentOutMultipleLines()
Tests the Comment Out Line(s) command with multiple lines. |
void |
testCommentOutSingleLine()
Tests the Comment Out Line(s) command with a single line. |
void |
testUncommentIgnoreMultipleLines()
Tests the Uncomment Line(s) command with multiple lines. |
void |
testUncommentIgnoreSingleLine()
Tests the Uncomment Line(s) command with a single line. |
void |
testUncommentMultipleLines()
Tests the Uncomment Line(s) command with multiple lines. |
void |
testUncommentSingleLine()
Tests the Uncomment Line(s) command with a single line. |
| Methods inherited from class edu.rice.cs.drjava.DrJavaTestCase |
|---|
setConfigSetting, setDocText, tearDown |
| 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 DefinitionsDocument doc
private java.lang.Integer _indentLevel
private GlobalEventNotifier _notifier
| Constructor Detail |
|---|
public CommentTest()
| Method Detail |
|---|
public void setUp()
throws java.lang.Exception
setUp in class DrJavaTestCasejava.lang.Exception - This convention is mandated by JUnit.TestCase, the superclass of this class.
public void testCommentOutSingleLine()
throws javax.swing.text.BadLocationException
javax.swing.text.BadLocationException
public void testCommentOutMultipleLines()
throws javax.swing.text.BadLocationException
javax.swing.text.BadLocationException
public void testUncommentIgnoreSingleLine()
throws javax.swing.text.BadLocationException
javax.swing.text.BadLocationException
public void testUncommentIgnoreMultipleLines()
throws javax.swing.text.BadLocationException
javax.swing.text.BadLocationException
public void testUncommentSingleLine()
throws javax.swing.text.BadLocationException
javax.swing.text.BadLocationException
public void testUncommentMultipleLines()
throws javax.swing.text.BadLocationException
javax.swing.text.BadLocationException
private static void _assertContents(java.lang.String msg,
java.lang.String expected,
DJDocument document)
throws javax.swing.text.BadLocationException
javax.swing.text.BadLocationException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||