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

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

public class QuestionCurrLineStartsWithSkipCommentsTest
extends IndentRulesTestCase

Test class according to the JUnit protocol. Tests the proper functionality of the class QuestionCurrLineStartsWithSkipComments.

Version:
$Id: QuestionCurrLineStartsWithSkipCommentsTest.java,v 1.2 2002/04/02 22:56:44 besan Exp $

Field Summary
private  IndentRuleQuestion _rule
           
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
QuestionCurrLineStartsWithSkipCommentsTest(String name)
           
 
Method Summary
 void setUp()
          Sets up the test environment.
 void testCloseBracePrefix()
           
 void testNoPrefix()
           
 void testOpenBracePrefix()
           
 
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

_rule

private IndentRuleQuestion _rule
Constructor Detail

QuestionCurrLineStartsWithSkipCommentsTest

public QuestionCurrLineStartsWithSkipCommentsTest(String name)
Method Detail

setUp

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

testNoPrefix

public void testNoPrefix()
                  throws BadLocationException

testOpenBracePrefix

public void testOpenBracePrefix()
                         throws BadLocationException

testCloseBracePrefix

public void testCloseBracePrefix()
                          throws BadLocationException