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

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

public class ActionStartPrevStmtPlusTest
extends IndentRulesTestCase

Test the action rules for code in the indentation decision tree. The implementation relies heavily on functions which are fully tested in IndentHelpersTest.

Version:
$Id: ActionStartPrevStmtPlusTest.java,v 1.4 2002/06/11 21:05:31 camus546 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
ActionStartPrevStmtPlusTest(String name)
          Tests the indentation decision tree.
 
Method Summary
 void testAfterArrayAssign()
           
 void testAfterArrayAssignMultiSemi()
           
 void testColonNotDelim()
           
 void testNoPrevStmt()
           
 void testPrevStmtPrevLine()
           
 void testPrevStmtSeveralLinesBeforeCurrLocation()
           
 
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

ActionStartPrevStmtPlusTest

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

testNoPrevStmt

public void testNoPrevStmt()
                    throws BadLocationException

testPrevStmtPrevLine

public void testPrevStmtPrevLine()
                          throws BadLocationException

testPrevStmtSeveralLinesBeforeCurrLocation

public void testPrevStmtSeveralLinesBeforeCurrLocation()
                                                throws BadLocationException

testColonNotDelim

public void testColonNotDelim()
                       throws BadLocationException

testAfterArrayAssign

public void testAfterArrayAssign()
                          throws BadLocationException

testAfterArrayAssignMultiSemi

public void testAfterArrayAssignMultiSemi()
                                   throws BadLocationException