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

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by edu.rice.cs.drjava.DrJavaTestCase
              extended by edu.rice.cs.drjava.model.definitions.indent.IndentRulesTestCase
                  extended by edu.rice.cs.drjava.model.definitions.indent.QuestionPrevLineStartsCommentTest
All Implemented Interfaces:
Test

public final class QuestionPrevLineStartsCommentTest
extends IndentRulesTestCase

Tests whether the previous line starts the comment containing the cursor.

Version:
$Id: QuestionPrevLineStartsCommentTest.java 5175 2010-01-20 08:46:32Z mgricken $

Nested Class Summary
 
Nested classes/interfaces inherited from class junit.framework.TestCase
TestCase.WrappedException
 
Field Summary
private static java.lang.String example1
           
private static java.lang.String example2
           
private static java.lang.String example3
           
(package private) static IndentRuleQuestion rule2
           
 
Fields inherited from class edu.rice.cs.drjava.model.definitions.indent.IndentRulesTestCase
_doc, TEST_INDENT_LEVEL
 
Constructor Summary
QuestionPrevLineStartsCommentTest()
           
 
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, tearDown
 
Methods inherited from class edu.rice.cs.drjava.DrJavaTestCase
setConfigSetting, setDocText
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSame, format
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

rule2

static IndentRuleQuestion rule2

example1

private static java.lang.String example1

example2

private static java.lang.String example2

example3

private static java.lang.String example3
Constructor Detail

QuestionPrevLineStartsCommentTest

public QuestionPrevLineStartsCommentTest()
Method Detail

testSimpleFirstLine

public void testSimpleFirstLine()
                         throws javax.swing.text.BadLocationException
Throws:
javax.swing.text.BadLocationException

testSimpleSecondLine

public void testSimpleSecondLine()
                          throws javax.swing.text.BadLocationException
Throws:
javax.swing.text.BadLocationException

testSlashStarMidLineFirstLine

public void testSlashStarMidLineFirstLine()
                                   throws javax.swing.text.BadLocationException
Throws:
javax.swing.text.BadLocationException

testSlashStarMidLineSecondLine

public void testSlashStarMidLineSecondLine()
                                    throws javax.swing.text.BadLocationException
Throws:
javax.swing.text.BadLocationException

testCommentedOutSlashStarBefore

public void testCommentedOutSlashStarBefore()
                                     throws javax.swing.text.BadLocationException
Throws:
javax.swing.text.BadLocationException

testCommentedOutSlashStarAt

public void testCommentedOutSlashStarAt()
                                 throws javax.swing.text.BadLocationException
Throws:
javax.swing.text.BadLocationException

testCommentedOutSlashStarAfter

public void testCommentedOutSlashStarAfter()
                                    throws javax.swing.text.BadLocationException
Throws:
javax.swing.text.BadLocationException