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

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

public 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,v 1.6 2002/04/02 07:11:37 csreis Exp $

Field Summary
private  IndentRuleAction _action
           
private  String _aligned
           
private  String _text
           
 
Fields inherited from class edu.rice.cs.drjava.model.definitions.indent.IndentRulesTestCase
_doc, _indent
 
Fields inherited from class junit.framework.TestCase
fName
 
Constructor Summary
ActionBracePlusTest(String name)
           
 
Method Summary
 void setUp()
          Sets up the test environment.
 void testComment()
           
 void testLargeSuffix()
           
 void testNoSuffix()
           
 void testSpaceSuffix()
           
 
Methods inherited from class edu.rice.cs.drjava.model.definitions.indent.IndentRulesTestCase
_assertContents, _setDocText
 
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
 

Field Detail

_text

private String _text

_aligned

private String _aligned

_action

private IndentRuleAction _action
Constructor Detail

ActionBracePlusTest

public ActionBracePlusTest(String name)
Parameters:
name - The name of this test case.
Method Detail

setUp

public void setUp()
Description copied from class: IndentRulesTestCase
Sets up the test environment.
Overrides:
setUp in class IndentRulesTestCase

testNoSuffix

public void testNoSuffix()
                  throws BadLocationException

testSpaceSuffix

public void testSpaceSuffix()
                     throws BadLocationException

testLargeSuffix

public void testLargeSuffix()
                     throws BadLocationException

testComment

public void testComment()
                 throws BadLocationException