edu.rice.cs.drjava.model.definitions.indent
Class QuestionNewParenPhraseTest
java.lang.Object
|
+--junit.framework.Assert
|
+--junit.framework.TestCase
|
+--edu.rice.cs.drjava.model.definitions.indent.IndentRulesTestCase
|
+--edu.rice.cs.drjava.model.definitions.indent.QuestionNewParenPhraseTest
- All Implemented Interfaces:
- Test
- public class QuestionNewParenPhraseTest
- extends IndentRulesTestCase
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.)
- Version:
- $Id: QuestionNewParenPhraseTest.java,v 1.3 2002/04/02 07:11:37 csreis Exp $
Methods inherited from class junit.framework.TestCase |
countTestCases, createResult, getName, name, run, run, runBare, runTest, setName, tearDown, 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 |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait |
QuestionNewParenPhraseTest
public QuestionNewParenPhraseTest(String name)
- Tests the indentation decision tree.
testStartOfDocument
public void testStartOfDocument()
throws BadLocationException
- Tests hitting start of document.
testNoParenDelims
public void testNoParenDelims()
throws BadLocationException
- Tests having no paren phrase delimiters on prev line.
testParenDelimsWithText
public void testParenDelimsWithText()
throws BadLocationException
- Tests having delimiter on prev line, with text preceding
testParenDelimsNoText
public void testParenDelimsNoText()
throws BadLocationException
- Tests having delimiter on prev line, with no text preceding
testParenDelimsWithComment
public void testParenDelimsWithComment()
throws BadLocationException
- Tests having a comment after the delimiter
testMultipleBlankLinesBack
public void testMultipleBlankLinesBack()
throws BadLocationException
- Tests having a paren delimiter several lines back, with only
whitespace inbetween.
testMultipleCommentLinesBack
public void testMultipleCommentLinesBack()
throws BadLocationException
- Tests having a paren delimiter several lines back, with only
blank space and comments inbetween.
testDoesNotEndWithParenDelim
public void testDoesNotEndWithParenDelim()
throws BadLocationException
- Tests having text on a line after the delimiter.
testOperatorDelim
public void testOperatorDelim()
throws BadLocationException
- Tests having an operator as a delimiter.
testIgnoreDelimsOnLine
public void testIgnoreDelimsOnLine()
throws BadLocationException
- Tests ignoring delims on line.