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

java.lang.Object
  |
  +--junit.framework.Assert
        |
        +--junit.framework.TestCase
              |
              +--edu.rice.cs.drjava.model.definitions.indent.IndentRulesTestCase
All Implemented Interfaces:
Test
Direct Known Subclasses:
ActionBracePlusTest, ActionDoNothingTest, ActionStartPrevLinePlusTest, ActionStartPrevStmtPlusTest, ActionStartStmtOfBracePlusTest, IndentHelperTest, QuestionBraceIsCurlyTest, QuestionBraceIsParenOrBracketTest, QuestionCurrLineEmptyTest, QuestionCurrLineStartsWithSkipCommentsTest, QuestionCurrLineStartsWithTest, QuestionExistsCharInStmtTest, QuestionHasCharPrecedingOpenBraceTest, QuestionInsideCommentTest, QuestionLineContainsTest, QuestionNewParenPhraseTest, QuestionPrevLineStartsCommentTest, QuestionPrevLineStartsWithTest, QuestionStartAfterOpenBraceTest, QuestionStartingNewStmtTest

public abstract class IndentRulesTestCase
extends TestCase

Superclass for all test classes for the indentation decision tree.

Version:
$Id: IndentRulesTestCase.java,v 1.2 2002/03/30 08:38:28 csreis Exp $

Field Summary
protected  DefinitionsDocument _doc
           
private  String _indent
           
 
Fields inherited from class junit.framework.TestCase
fName
 
Constructor Summary
IndentRulesTestCase(String name)
          Tests the indentation decision tree.
 
Method Summary
protected  void _assertContents(String expected)
          Asserts that the document contains the expected text.
protected  void _setDocText(String text)
          Clears the text of the _doc field and sets it to the given string.
 void setUp()
          Sets up the test environment.
 
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

_doc

protected DefinitionsDocument _doc

_indent

private String _indent
Constructor Detail

IndentRulesTestCase

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

setUp

public void setUp()
Sets up the test environment.
Overrides:
setUp in class TestCase

_setDocText

protected final void _setDocText(String text)
                          throws BadLocationException
Clears the text of the _doc field and sets it to the given string.

_assertContents

protected void _assertContents(String expected)
                        throws BadLocationException
Asserts that the document contains the expected text.
Parameters:
expected - what text of document should be