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

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

public final class ActionBracePlusTest
extends IndentRulesTestCase

Test class according to the JUnit protocol. Tests the action that aligns the indentation of the current line to the character that opened the most recent block or expression list that contains the beginning of the current line. Optional additional whitespaces can be passed through the constructor.

Version:
$Id: ActionBracePlusTest.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
private  IndentRuleAction _action
           
private  java.lang.String _aligned
           
private  java.lang.String _text
           
 
Fields inherited from class edu.rice.cs.drjava.model.definitions.indent.IndentRulesTestCase
_doc, TEST_INDENT_LEVEL
 
Constructor Summary
ActionBracePlusTest()
           
 
Method Summary
 void testComment()
           
 void testLargeSuffix()
           
 void testNoSuffix()
           
 void testSpaceSuffix()
           
 
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
 

Field Detail

_text

private java.lang.String _text

_aligned

private java.lang.String _aligned

_action

private IndentRuleAction _action
Constructor Detail

ActionBracePlusTest

public ActionBracePlusTest()
Method Detail

testNoSuffix

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

testSpaceSuffix

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

testLargeSuffix

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

testComment

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