|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--junit.framework.Assert | +--junit.framework.TestCase | +--edu.rice.cs.drjava.model.definitions.IndentTest
Test the tab/enter/squiggly indenting functionality.
Field Summary | |
private Integer |
configIndent
|
protected DefinitionsDocument |
doc
|
private Integer |
indentLevel
|
(package private) static String |
noBrace
|
(package private) static String |
openBracket
|
(package private) static String |
openParen
|
(package private) static String |
openSquiggly
|
Fields inherited from class junit.framework.TestCase |
fName |
Constructor Summary | |
IndentTest(String name)
put your documentation comment here |
Method Summary | |
private void |
_assertContents(String expected,
Document document)
|
private void |
_assertIndentInfo(IndentInfo ii,
String braceType,
int distToNewline,
int distToBrace,
int distToPrevNewline)
|
void |
setUp()
put your documentation comment here |
static Test |
suite()
put your documentation comment here |
protected void |
tearDown()
put your documentation comment here |
void |
testAfterBlockComment()
put your documentation comment here |
void |
testAfterBlockComment2()
put your documentation comment here |
void |
testAfterBlockComment3()
put your documentation comment here |
void |
testAfterBlockComment4()
put your documentation comment here |
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 |
testEndBrace()
put your documentation comment here |
void |
testEndOfBlockComment()
put your documentation comment here |
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 |
testIndentInfoBlockComments()
put your documentation comment here |
void |
testIndentInfoBlockComments2()
put your documentation comment here |
void |
testIndentInfoBlockComments3()
put your documentation comment here |
void |
testIndentInfoBlockComments4()
put your documentation comment here |
void |
testIndentInfoBracket()
put your documentation comment here |
void |
testIndentInfoParen()
put your documentation comment here |
void |
testIndentInfoPrevNewline()
put your documentation comment here |
void |
testIndentInfoSquiggly()
put your documentation comment here |
void |
testIndentInsideCommentBlock()
put your documentation comment here |
void |
testIndentParenPhrases()
Regression test for paren phrases. |
void |
testIndentSwitch()
Regression test for switch statements. |
void |
testInsideClass()
put your documentation comment here |
void |
testInsideClassWithBraceSets()
put your documentation comment here |
void |
testLiveUpdateOfIndentLevel()
|
void |
testMotion()
put your documentation comment here |
void |
testNextCharIsNewline()
put your documentation comment here |
void |
testNothingToIndentOn()
put your documentation comment here |
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 |
testPrintString()
put your documentation comment here |
void |
testSecondLineProblem()
put your documentation comment here |
void |
testSecondLineProblem2()
put your documentation comment here |
void |
testSkippingBraces()
put your documentation comment here |
void |
testSkippingComments()
put your documentation comment here |
void |
testSkippingCommentsBraceAtBeginning()
put your documentation comment here |
void |
testSmallFileProblem()
put your documentation comment here |
void |
testSpaceBrace()
put your documentation comment here |
void |
testSquigglyAlignment()
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 junit.framework.TestCase |
countTestCases, createResult, getName, name, run, run, runBare, runTest, setName, toString |
Methods inherited from class junit.framework.Assert |
assert, assert, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertNotNull, assertNotNull, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame |
Methods inherited from class java.lang.Object |
|
Field Detail |
protected DefinitionsDocument doc
static String noBrace
static String openSquiggly
static String openParen
static String openBracket
private Integer indentLevel
private Integer configIndent
Constructor Detail |
public IndentTest(String name)
String
- nameMethod Detail |
public void setUp()
setUp
in class TestCase
protected void tearDown()
tearDown
in class TestCase
public static Test suite()
public void testIndentComments() throws BadLocationException
public void testIndentParenPhrases() throws BadLocationException
public void testIndentBraces() throws BadLocationException
public void testIndentArray() throws BadLocationException
public void testIndentCommonCases() throws BadLocationException
public void testIndentSwitch() throws BadLocationException
public void testIndentInfoSquiggly() 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 testIndentInfoBlockComments() throws BadLocationException
BadLocationException
- public void testIndentInfoBlockComments2() throws BadLocationException
BadLocationException
- public void testIndentInfoBlockComments3() throws BadLocationException
BadLocationException
- public void testIndentInfoBlockComments4() throws BadLocationException
BadLocationException
- public void testSkippingBraces() throws BadLocationException
BadLocationException
- public void testSkippingComments() throws BadLocationException
BadLocationException
- public void testSkippingCommentsBraceAtBeginning() throws BadLocationException
BadLocationException
- public void testNothingToIndentOn() 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 testSquigglyAlignment() 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
public void testLiveUpdateOfIndentLevel() throws BadLocationException
private void _assertContents(String expected, Document document) throws BadLocationException
private void _assertIndentInfo(IndentInfo ii, String braceType, int distToNewline, int distToBrace, int distToPrevNewline)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |