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

java.lang.Object
  |
  +--junit.framework.Assert
        |
        +--junit.framework.TestCase
              |
              +--edu.rice.cs.drjava.model.definitions.indent.IndentRulesTestCase
                    |
                    +--edu.rice.cs.drjava.model.definitions.indent.ActionStartStmtOfBracePlusTest
All Implemented Interfaces:
Test

public 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,v 1.5 2002/03/26 21:14:13 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
ActionStartStmtOfBracePlusTest(String name)
          Tests the indentation decision tree.
 
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
 
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

ActionStartStmtOfBracePlusTest

public ActionStartStmtOfBracePlusTest(String name)
Tests the indentation decision tree.
Parameters:
String - name
Method Detail

testSingleLineContract

public void testSingleLineContract()
                            throws BadLocationException
Tests indenting with a single line contract

testIndentedSingleLineContract

public void testIndentedSingleLineContract()
                                    throws BadLocationException
Tests indenting with an indented single line contract

testMultiLineContract

public void testMultiLineContract()
                           throws BadLocationException
Tests indenting with a multiple line contract

testForStatement

public void testForStatement()
                      throws BadLocationException
Tests indenting a for statement (odd semicolons)

testMultiLineForStatement

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

testCommentedBrace

public void testCommentedBrace()
                        throws BadLocationException
Tests indenting with commented delimiters

testNoBrace

public void testNoBrace()
                 throws BadLocationException
Tests indenting without an enclosing brace