|
||||||||||
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.QuestionExistsCharInStmtTest
public final class QuestionExistsCharInStmtTest
Tests the question rule which determines if the given findChar is found between the start of the statement and the endChar, which must exist on the current line.
This is done in the context of determining if a colon that was found on the current line is part of a ternary operator. Hence, we use endChar=':' and findChar='?'.
Field Summary |
---|
Fields inherited from class edu.rice.cs.drjava.model.definitions.indent.IndentRulesTestCase |
---|
_doc, TEST_INDENT_LEVEL |
Fields inherited from class edu.rice.cs.drjava.DrJavaTestCase |
---|
TEST_DRJAVA_CONFIG_PROPERTY |
Constructor Summary | |
---|---|
QuestionExistsCharInStmtTest()
|
Method Summary | |
---|---|
void |
testColonInTernaryOpIgnoreWhitespaceAndComments()
Ensures that a colon that is part of a ternary operator is detected. |
void |
testColonInTernaryOpMultiLineStmts()
Ensures that a colon that is part of a ternary operator is detected. |
void |
testColonInTernaryOpOneLineStmts()
Ensures that a colon that is part of a ternary operator is detected. |
void |
testColonInTernaryOpTwoStmtsOnOneLine()
Ensures that a colon that is part of a ternary operator is detected. |
void |
testColonNotInTernaryOpDueToQuestionMarkInCommentsOrQuotes()
Ensures that a colon that is part of a ternary operator is detected. |
void |
testColonNotInTernaryOpMultiLineStmts()
Ensures that a colon that is part of a ternary operator is detected. |
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 |
Constructor Detail |
---|
public QuestionExistsCharInStmtTest()
Method Detail |
---|
public void testColonInTernaryOpOneLineStmts() throws BadLocationException
BadLocationException
public void testColonInTernaryOpTwoStmtsOnOneLine() throws BadLocationException
BadLocationException
public void testColonInTernaryOpMultiLineStmts() throws BadLocationException
BadLocationException
public void testColonInTernaryOpIgnoreWhitespaceAndComments() throws BadLocationException
BadLocationException
public void testColonNotInTernaryOpDueToQuestionMarkInCommentsOrQuotes() throws BadLocationException
BadLocationException
public void testColonNotInTernaryOpMultiLineStmts() throws BadLocationException
BadLocationException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |