|
||||||||||
| 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.indent.IndentRulesTestCase
edu.rice.cs.drjava.model.definitions.indent.QuestionStartAfterOpenBraceTest
public final class QuestionStartAfterOpenBraceTest
Tests whether the closest non-whitespace character preceding the start of the current line (excluding any characters inside comments or strings) is an open brace.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class junit.framework.TestCase |
|---|
junit.framework.TestCase.WrappedException |
| Field Summary | |
|---|---|
private IndentRuleQuestion |
_rule
|
private String |
_text
|
| Fields inherited from class edu.rice.cs.drjava.model.definitions.indent.IndentRulesTestCase |
|---|
_doc, TEST_INDENT_LEVEL |
| Constructor Summary | |
|---|---|
QuestionStartAfterOpenBraceTest()
|
|
| Method Summary | |
|---|---|
void |
testBraceLastCharOnLine()
|
void |
testCommentsAfterBrace()
|
void |
testNoBrace()
|
void |
testRightAfterBrace()
|
void |
testTextAfterBrace()
|
void |
testWSAfterBrace()
|
| Methods inherited from class edu.rice.cs.drjava.model.definitions.indent.IndentRulesTestCase |
|---|
_assertContents, _setDocText, setUp, tearDown |
| 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 String _text
private IndentRuleQuestion _rule
| Constructor Detail |
|---|
public QuestionStartAfterOpenBraceTest()
| Method Detail |
|---|
public void testNoBrace()
throws BadLocationException
BadLocationException
public void testRightAfterBrace()
throws BadLocationException
BadLocationException
public void testWSAfterBrace()
throws BadLocationException
BadLocationException
public void testCommentsAfterBrace()
throws BadLocationException
BadLocationException
public void testBraceLastCharOnLine()
throws BadLocationException
BadLocationException
public void testTextAfterBrace()
throws BadLocationException
BadLocationException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||