edu.rice.cs.drjava.model.definitions
Class IndentHelperTest

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

public class IndentHelperTest
extends IndentRulesTestCase

Tests for the helper methods in DefinitionsDocument

Version:
$Id: IndentHelperTest.java,v 1.1 2002/07/22 22:50:41 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
IndentHelperTest(String name)
           
 
Method Summary
 void testFindPrevDelimiter()
           
 void testGetFirstNonWSCharPos()
           
 void testGetIndentOfCurrStmtDelimiters()
           
 void testGetIndentOfCurrStmtDelimiterSameLine()
           
 void testGetIndentOfCurrStmtEndOfDoc()
           
 void testGetIndentOfCurrStmtIgnoreDelimsInParenPhrase()
           
 void testGetIndentOfCurrStmtMultipleLines()
           
 void testGetLineEndPos()
           
 void testGetLineFirstCharPos()
           
 void testGetLineStartPos()
           
 void testPosInParenPhrase()
           
 
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

IndentHelperTest

public IndentHelperTest(String name)
Method Detail

testFindPrevDelimiter

public void testFindPrevDelimiter()
                           throws BadLocationException
Returns:
The position of the first matching character in the given array of characters found when scanning backwards from the current position. Returns -1 if no match is found.

testPosInParenPhrase

public void testPosInParenPhrase()
                          throws BadLocationException

testGetIndentOfCurrStmtDelimiters

public void testGetIndentOfCurrStmtDelimiters()
                                       throws BadLocationException

testGetIndentOfCurrStmtDelimiterSameLine

public void testGetIndentOfCurrStmtDelimiterSameLine()
                                              throws BadLocationException

testGetIndentOfCurrStmtMultipleLines

public void testGetIndentOfCurrStmtMultipleLines()
                                          throws BadLocationException

testGetIndentOfCurrStmtIgnoreDelimsInParenPhrase

public void testGetIndentOfCurrStmtIgnoreDelimsInParenPhrase()
                                                      throws BadLocationException

testGetIndentOfCurrStmtEndOfDoc

public void testGetIndentOfCurrStmtEndOfDoc()
                                     throws BadLocationException

testGetLineStartPos

public void testGetLineStartPos()
                         throws BadLocationException

testGetLineEndPos

public void testGetLineEndPos()
                       throws BadLocationException

testGetLineFirstCharPos

public void testGetLineFirstCharPos()
                             throws BadLocationException

testGetFirstNonWSCharPos

public void testGetFirstNonWSCharPos()
                              throws BadLocationException