edu.rice.cs.drjava.model.definitions.indent
Class QuestionBraceIsParenOrBracketTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by edu.rice.cs.drjava.DrJavaTestCase
              extended by edu.rice.cs.drjava.model.definitions.indent.IndentRulesTestCase
                  extended by edu.rice.cs.drjava.model.definitions.indent.QuestionBraceIsParenOrBracketTest
All Implemented Interfaces:
Test

public final class QuestionBraceIsParenOrBracketTest
extends IndentRulesTestCase

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 one of the characters '(' or '['. This questions corresponds to rule 11 in our decision tree.

Version:
$Id: QuestionBraceIsParenOrBracketTest.java 4519 2008-06-15 07:14:29Z rcartwright $

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
QuestionBraceIsParenOrBracketTest()
           
 
Method Summary
 void testBracket()
           
 void testBracketWithArrayComprehension()
           
 void testCurly()
           
 void testParen()
           
 
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

QuestionBraceIsParenOrBracketTest

public QuestionBraceIsParenOrBracketTest()
Method Detail

testParen

public void testParen()
               throws BadLocationException
Throws:
BadLocationException

testBracket

public void testBracket()
                 throws BadLocationException
Throws:
BadLocationException

testCurly

public void testCurly()
               throws BadLocationException
Throws:
BadLocationException

testBracketWithArrayComprehension

public void testBracketWithArrayComprehension()
                                       throws BadLocationException
Throws:
BadLocationException