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 $

Fields inherited from class edu.rice.cs.drjava.model.definitions.indent.IndentRulesTestCase
_doc, _indent
 
Fields inherited from class junit.framework.TestCase
fName
 
Constructor Summary
QuestionNewParenPhraseTest(String name)
          Tests the indentation decision tree.
 
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
 
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
 

Constructor Detail

QuestionNewParenPhraseTest

public QuestionNewParenPhraseTest(String name)
Tests the indentation decision tree.
Method Detail

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.