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

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

public final 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 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
ActionStartPrevStmtPlusTest()
           
 
Method Summary
 void testAfterArrayAssign()
           
 void testAfterArrayAssignMultiSemi()
           
 void testAnonymousInnerClassArg()
           
 void testAnonymousInnerClassAssign()
           
 void testColonNotDelim()
           
 void testNoPrevStmt()
           
 void testPrevStmtPrevLine()
           
 void testPrevStmtSeveralLinesBeforeCurrLocation()
           
 
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

ActionStartPrevStmtPlusTest

public ActionStartPrevStmtPlusTest()
Method Detail

testNoPrevStmt

public void testNoPrevStmt()
                    throws javax.swing.text.BadLocationException
Throws:
javax.swing.text.BadLocationException

testPrevStmtPrevLine

public void testPrevStmtPrevLine()
                          throws javax.swing.text.BadLocationException
Throws:
javax.swing.text.BadLocationException

testPrevStmtSeveralLinesBeforeCurrLocation

public void testPrevStmtSeveralLinesBeforeCurrLocation()
                                                throws javax.swing.text.BadLocationException
Throws:
javax.swing.text.BadLocationException

testColonNotDelim

public void testColonNotDelim()
                       throws javax.swing.text.BadLocationException
Throws:
javax.swing.text.BadLocationException

testAfterArrayAssign

public void testAfterArrayAssign()
                          throws javax.swing.text.BadLocationException
Throws:
javax.swing.text.BadLocationException

testAfterArrayAssignMultiSemi

public void testAfterArrayAssignMultiSemi()
                                   throws javax.swing.text.BadLocationException
Throws:
javax.swing.text.BadLocationException

testAnonymousInnerClassAssign

public void testAnonymousInnerClassAssign()
                                   throws javax.swing.text.BadLocationException
Throws:
javax.swing.text.BadLocationException

testAnonymousInnerClassArg

public void testAnonymousInnerClassArg()
                                throws javax.swing.text.BadLocationException
Throws:
javax.swing.text.BadLocationException