|
||||||||||
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.IndentTest
public final class IndentTest
Class that tests the tab/enter/curly indenting functionality.
Field Summary | |
---|---|
protected DefinitionsDocument |
_doc
|
Fields inherited from class edu.rice.cs.drjava.DrJavaTestCase |
---|
TEST_DRJAVA_CONFIG_PROPERTY |
Constructor Summary | |
---|---|
IndentTest(String name)
Standard constructor for IdentTest |
Method Summary | |
---|---|
void |
setUp()
Sets up the member bindings common to all tests. |
static Test |
suite()
Builds the suite of tests for Indent.class. |
void |
testAfterBlockComment()
Tests block comment indenting. |
void |
testAfterBlockComment2()
put your documentation comment here |
void |
testAfterBlockComment3()
put your documentation comment here |
void |
testAfterBlockComment4()
put your documentation comment here |
void |
testAnnotationsAfterDefinition()
Tests that annotations do not change the indent level of the lines following. |
void |
testAnnotationsAfterOpenCurly()
Tests that annotations do not change the indent level of the lines following. |
void |
testAnonymousInnerClass()
Regression test for arrays. |
void |
testBlockIndent()
put your documentation comment here |
void |
testBlockIndent2()
Regression test for bug in drjava-20010802-1020: Indent block on a file containing just " x;\n y;\n" would throw an exception. |
void |
testCurlyAlignment()
put your documentation comment here |
void |
testEndBrace()
put your documentation comment here |
void |
testEndOfBlockComment()
Tests block comment indenting. |
void |
testEnter()
put your documentation comment here |
void |
testEnter2()
put your documentation comment here |
void |
testFor()
put your documentation comment here |
void |
testFor2()
put your documentation comment here |
void |
testIgnoreBraceOnSameLine()
put your documentation comment here |
void |
testIndentArray()
Regression test for arrays. |
void |
testIndentBraces()
Regression test for braces. |
void |
testIndentComments()
Regression test for comment portion of indent tree. |
void |
testIndentCommonCases()
Regression test for common cases. |
void |
testIndentInfoBracket()
put your documentation comment here |
void |
testIndentInfoCurly()
Tests getLineEnclosingBrace, getEnclosingBrace |
void |
testIndentInfoParen()
put your documentation comment here |
void |
testIndentInfoPrevNewline()
Put your documentation comment here |
void |
testIndentingCorrectLine()
|
void |
testIndentInsideCommentBlock()
put your documentation comment here |
void |
testIndentParenPhrases()
Regression test for paren phrases. |
void |
testIndentSwitch()
Regression test for switch statements. |
void |
testIndentTernary()
Regression test for ternary operators. |
void |
testInsideClass()
put your documentation comment here |
void |
testInsideClassWithBraceSets()
put your documentation comment here |
void |
testLiveUpdateOfIndentLevel()
|
void |
testMotion()
put your documentation comment here |
void |
testMultiLineStarInsertFirstLine()
Test case for SourceForge bug# 681203. |
void |
testMultiLineStarInsertLaterLine()
Test case for SourceForge bug# 681203. |
void |
testNestedIfInSwitch()
tests that an if statment nested in a switch will be indented properly |
void |
testNextCharIsNewline()
put your documentation comment here |
void |
testNoParameters()
|
void |
testNotRecognizeComments()
put your documentation comment here |
void |
testNotRecognizeComments2()
put your documentation comment here |
void |
testOpenBracket()
put your documentation comment here |
void |
testOpenParen()
put your documentation comment here |
void |
testParenthesizedAnonymousInnerClass()
|
void |
testPrintString()
put your documentation comment here |
void |
testSecondLineProblem()
put your documentation comment here |
void |
testSecondLineProblem2()
put your documentation comment here |
void |
testSmallFileProblem()
put your documentation comment here |
void |
testSpaceBrace()
put your documentation comment here |
void |
testStartBrace()
put your documentation comment here |
void |
testStartSimple()
put your documentation comment here |
void |
testStartSpaceIndent()
put your documentation comment here |
void |
testWeird()
put your documentation comment here |
void |
testWierd2()
put your documentation comment here |
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
Constructor Detail |
---|
public IndentTest(String name)
name
- 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 static Test suite()
public void testIndentComments() throws BadLocationException
BadLocationException
public void testMultiLineStarInsertFirstLine() throws BadLocationException
BadLocationException
public void testMultiLineStarInsertLaterLine() throws BadLocationException
BadLocationException
public void testIndentParenPhrases() throws BadLocationException
BadLocationException
public void testIndentBraces() throws BadLocationException
BadLocationException
public void testIndentArray() throws BadLocationException
BadLocationException
public void testIndentCommonCases() throws BadLocationException
BadLocationException
public void testIndentSwitch() throws BadLocationException
BadLocationException
public void testIndentTernary() throws BadLocationException
BadLocationException
public void testIndentInfoCurly() throws BadLocationException
BadLocationException
public void testIndentInfoParen() throws BadLocationException
BadLocationException
public void testIndentInfoBracket() throws BadLocationException
BadLocationException
public void testIndentInfoPrevNewline() throws BadLocationException
BadLocationException
public void testEndOfBlockComment() throws BadLocationException
BadLocationException
public void testAfterBlockComment() throws BadLocationException
BadLocationException
public void testAfterBlockComment3() throws BadLocationException
BadLocationException
public void testAfterBlockComment4() throws BadLocationException
BadLocationException
public void testAfterBlockComment2() throws BadLocationException
BadLocationException
public void testStartSimple() throws BadLocationException
BadLocationException
public void testStartSpaceIndent() throws BadLocationException
BadLocationException
public void testStartBrace() throws BadLocationException
BadLocationException
public void testEndBrace() throws BadLocationException
BadLocationException
public void testInsideClass() throws BadLocationException
BadLocationException
public void testInsideClassWithBraceSets() throws BadLocationException
BadLocationException
public void testIgnoreBraceOnSameLine() throws BadLocationException
BadLocationException
public void testWeird() throws BadLocationException
BadLocationException
public void testWierd2() throws BadLocationException
BadLocationException
public void testMotion() throws BadLocationException
BadLocationException
public void testNextCharIsNewline() throws BadLocationException
BadLocationException
public void testFor() throws BadLocationException
BadLocationException
public void testFor2() throws BadLocationException
BadLocationException
public void testOpenParen() throws BadLocationException
BadLocationException
public void testPrintString() throws BadLocationException
BadLocationException
public void testOpenBracket() throws BadLocationException
BadLocationException
public void testCurlyAlignment() throws BadLocationException
BadLocationException
public void testSpaceBrace() throws BadLocationException
BadLocationException
public void testEnter() throws BadLocationException
BadLocationException
public void testEnter2() throws BadLocationException
BadLocationException
public void testNotRecognizeComments() throws BadLocationException
BadLocationException
public void testNotRecognizeComments2() throws BadLocationException
BadLocationException
public void testBlockIndent() throws BadLocationException
BadLocationException
public void testBlockIndent2() throws BadLocationException
BadLocationException
public void testIndentInsideCommentBlock() throws BadLocationException
BadLocationException
public void testSecondLineProblem() throws BadLocationException
BadLocationException
public void testSecondLineProblem2() throws BadLocationException
BadLocationException
public void testSmallFileProblem() throws BadLocationException
BadLocationException
public void testAnonymousInnerClass() throws BadLocationException
BadLocationException
public void testParenthesizedAnonymousInnerClass() throws BadLocationException
BadLocationException
public void testLiveUpdateOfIndentLevel() throws BadLocationException
BadLocationException
public void testNestedIfInSwitch() throws BadLocationException
BadLocationException
public void testIndentingCorrectLine() throws BadLocationException
BadLocationException
public void testAnnotationsAfterOpenCurly() throws BadLocationException
BadLocationException
public void testAnnotationsAfterDefinition() throws BadLocationException
BadLocationException
public void testNoParameters() throws BadLocationException
BadLocationException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |