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

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.ActionStartStmtOfBracePlusTest
All Implemented Interfaces:
Test

public final class ActionStartStmtOfBracePlusTest
extends IndentRulesTestCase

Test the action rules for code in the indentation decision tree. Assumes cursor is within a brace.

Version:
$Id: ActionStartStmtOfBracePlusTest.java 5175 2010-01-20 08:46:32Z mgricken $

Nested Class Summary
 
Nested classes/interfaces inherited from class junit.framework.TestCase
TestCase.WrappedException
 
Field Summary
 
Fields inherited from class edu.rice.cs.drjava.model.definitions.indent.IndentRulesTestCase
_doc, TEST_INDENT_LEVEL
 
Constructor Summary
ActionStartStmtOfBracePlusTest()
           
 
Method Summary
 void testCommentedBrace()
          Tests indenting with commented delimiters.
 void testForStatement()
          Tests indenting a for statement (odd semicolons)
 void testIndentedSingleLineContract()
          Tests indenting with an indented single line contract.
 void testMultiLineContract()
          Tests indenting with a multiple line contract.
 void testMultiLineForStatement()
          Tests indenting a multiple line for statement (odd semicolons)
 void testNoBrace()
          Tests indenting without an enclosing brace.
 void testSingleLineContract()
          Tests indenting with a single line contract.
 
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

ActionStartStmtOfBracePlusTest

public ActionStartStmtOfBracePlusTest()
Method Detail

testSingleLineContract

public void testSingleLineContract()
                            throws javax.swing.text.BadLocationException
Tests indenting with a single line contract.

Throws:
javax.swing.text.BadLocationException

testIndentedSingleLineContract

public void testIndentedSingleLineContract()
                                    throws javax.swing.text.BadLocationException
Tests indenting with an indented single line contract.

Throws:
javax.swing.text.BadLocationException

testMultiLineContract

public void testMultiLineContract()
                           throws javax.swing.text.BadLocationException
Tests indenting with a multiple line contract.

Throws:
javax.swing.text.BadLocationException

testForStatement

public void testForStatement()
                      throws javax.swing.text.BadLocationException
Tests indenting a for statement (odd semicolons)

Throws:
javax.swing.text.BadLocationException

testMultiLineForStatement

public void testMultiLineForStatement()
                               throws javax.swing.text.BadLocationException
Tests indenting a multiple line for statement (odd semicolons)

Throws:
javax.swing.text.BadLocationException

testCommentedBrace

public void testCommentedBrace()
                        throws javax.swing.text.BadLocationException
Tests indenting with commented delimiters.

Throws:
javax.swing.text.BadLocationException

testNoBrace

public void testNoBrace()
                 throws javax.swing.text.BadLocationException
Tests indenting without an enclosing brace.

Throws:
javax.swing.text.BadLocationException