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

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

public class QuestionPrevLineStartsCommentTest
extends IndentRulesTestCase

Tests whether the previous line start the comment?

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

Field Summary
private static String example1
           
private static String example2
           
private static String example3
           
(package private) static IndentRuleQuestion rule2
           
 
Fields inherited from class edu.rice.cs.drjava.model.definitions.indent.IndentRulesTestCase
_doc, _indent
 
Fields inherited from class junit.framework.TestCase
fName
 
Constructor Summary
QuestionPrevLineStartsCommentTest(String name)
           
 
Method Summary
 void testCommentedOutSlashStarAfter()
           
 void testCommentedOutSlashStarAt()
           
 void testCommentedOutSlashStarBefore()
           
 void testSimpleFirstLine()
           
 void testSimpleSecondLine()
           
 void testSlashStarMidLineFirstLine()
           
 void testSlashStarMidLineSecondLine()
           
 
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
 

Field Detail

rule2

static IndentRuleQuestion rule2

example1

private static String example1

example2

private static String example2

example3

private static String example3
Constructor Detail

QuestionPrevLineStartsCommentTest

public QuestionPrevLineStartsCommentTest(String name)
Method Detail

testSimpleFirstLine

public void testSimpleFirstLine()
                         throws BadLocationException

testSimpleSecondLine

public void testSimpleSecondLine()
                          throws BadLocationException

testSlashStarMidLineFirstLine

public void testSlashStarMidLineFirstLine()
                                   throws BadLocationException

testSlashStarMidLineSecondLine

public void testSlashStarMidLineSecondLine()
                                    throws BadLocationException

testCommentedOutSlashStarBefore

public void testCommentedOutSlashStarBefore()
                                     throws BadLocationException

testCommentedOutSlashStarAt

public void testCommentedOutSlashStarAt()
                                 throws BadLocationException

testCommentedOutSlashStarAfter

public void testCommentedOutSlashStarAfter()
                                    throws BadLocationException