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

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

public class QuestionInsideCommentTest
extends IndentRulesTestCase

Tests whether start of line is within a multiline comment.

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

Field Summary
(package private) static IndentRuleQuestion _rule
           
 
Fields inherited from class edu.rice.cs.drjava.model.definitions.indent.IndentRulesTestCase
_doc, _indent
 
Fields inherited from class junit.framework.TestCase
fName
 
Constructor Summary
QuestionInsideCommentTest(String name)
           
 
Method Summary
 void setUp()
          Sets up the test environment.
 void testAfterCommentedOutSlashStar()
           
 void testBarLine()
           
 void testCommentedOutSlashStar()
           
 void testDocStart()
           
 void testFooLine()
           
 void testLineBeginsComment()
           
 void testLineEndsComment()
           
 void testSlashStarMidLineAfter()
           
 void testSlashStarMidLineBefore()
           
 void testStarSlashMidLineAfter()
           
 void testStarSlashMidLineBefore()
           
 
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

_rule

static IndentRuleQuestion _rule
Constructor Detail

QuestionInsideCommentTest

public QuestionInsideCommentTest(String name)
Method Detail

setUp

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

testDocStart

public void testDocStart()
                  throws BadLocationException

testLineBeginsComment

public void testLineBeginsComment()
                           throws BadLocationException

testFooLine

public void testFooLine()
                 throws BadLocationException

testLineEndsComment

public void testLineEndsComment()
                         throws BadLocationException

testBarLine

public void testBarLine()
                 throws BadLocationException

testSlashStarMidLineBefore

public void testSlashStarMidLineBefore()
                                throws BadLocationException

testSlashStarMidLineAfter

public void testSlashStarMidLineAfter()
                               throws BadLocationException

testCommentedOutSlashStar

public void testCommentedOutSlashStar()
                               throws BadLocationException

testStarSlashMidLineBefore

public void testStarSlashMidLineBefore()
                                throws BadLocationException

testStarSlashMidLineAfter

public void testStarSlashMidLineAfter()
                               throws BadLocationException

testAfterCommentedOutSlashStar

public void testAfterCommentedOutSlashStar()
                                    throws BadLocationException