|
||||||||||
| 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.QuestionBraceIsCurlyTest
public final class QuestionBraceIsCurlyTest
Test class according to the JUnit protocol. Tests the question that determines whether or not the last block or expression list opened previous to the start of the current line was opened by the character '{'. This questions corresponds to rule 15 in our decision tree.
| 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 | |
|---|---|
QuestionBraceIsCurlyTest()
|
|
| Method Summary | |
|---|---|
void |
testEmbeddedBraceForms()
|
void |
testOnlyCurly()
|
void |
testWithParen()
|
| 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 final IndentRuleQuestion _rule
| Constructor Detail |
|---|
public QuestionBraceIsCurlyTest()
| Method Detail |
|---|
public void testWithParen()
throws BadLocationException
BadLocationException
public void testOnlyCurly()
throws BadLocationException
BadLocationException
public void testEmbeddedBraceForms()
throws BadLocationException
BadLocationException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||