|
||||||||||
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.QuestionNewParenPhraseTest
public final class QuestionNewParenPhraseTest
Tests the indention rule which detects whether the current line starts a new parenthesized phrase. (ie. Previous line ends in comma, semicolon, open paren, or open bracket.)
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 | |
---|---|
QuestionNewParenPhraseTest()
|
Method Summary | |
---|---|
void |
testDoesNotEndWithParenDelim()
Tests having text on a line after the delimiter. |
void |
testIgnoreDelimsOnLine()
Tests ignoring delims on line. |
void |
testMultipleBlankLinesBack()
Tests having a paren delimiter several lines back, with only whitespace inbetween. |
void |
testMultipleCommentLinesBack()
Tests having a paren delimiter several lines back, with only blank space and comments inbetween. |
void |
testNoParenDelims()
Tests having no paren phrase delimiters on prev line. |
void |
testOperatorDelim()
Tests having an operator as a delimiter. |
void |
testParenDelimsNoText()
Tests having delimiter on prev line, with no text preceding |
void |
testParenDelimsWithComment()
Tests having a comment after the delimiter |
void |
testParenDelimsWithText()
Tests having delimiter on prev line, with text preceding |
void |
testStartOfDocument()
Tests hitting start of document. |
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 QuestionNewParenPhraseTest()
Method Detail |
---|
public void testStartOfDocument() throws BadLocationException
BadLocationException
public void testNoParenDelims() throws BadLocationException
BadLocationException
public void testParenDelimsWithText() throws BadLocationException
BadLocationException
public void testParenDelimsNoText() throws BadLocationException
BadLocationException
public void testParenDelimsWithComment() throws BadLocationException
BadLocationException
public void testMultipleBlankLinesBack() throws BadLocationException
BadLocationException
public void testMultipleCommentLinesBack() throws BadLocationException
BadLocationException
public void testDoesNotEndWithParenDelim() throws BadLocationException
BadLocationException
public void testOperatorDelim() throws BadLocationException
BadLocationException
public void testIgnoreDelimsOnLine() throws BadLocationException
BadLocationException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |