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

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.QuestionInsideCommentTest
All Implemented Interfaces:
Test

public final class QuestionInsideCommentTest
extends IndentRulesTestCase

Tests whether start of line is within a multiline comment.

Version:
$Id: QuestionInsideCommentTest.java 4519 2008-06-15 07:14:29Z rcartwright $

Field Summary
 
Fields inherited from class edu.rice.cs.drjava.model.definitions.indent.IndentRulesTestCase
_doc, TEST_INDENT_LEVEL
 
Fields inherited from class edu.rice.cs.drjava.DrJavaTestCase
TEST_DRJAVA_CONFIG_PROPERTY
 
Constructor Summary
QuestionInsideCommentTest()
           
 
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, 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
 

Constructor Detail

QuestionInsideCommentTest

public QuestionInsideCommentTest()
Method Detail

setUp

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

Overrides:
setUp in class IndentRulesTestCase
Throws:
Exception - This convention is mandated by JUnit.TestCase, the superclass of this class.

testDocStart

public void testDocStart()
                  throws BadLocationException
Throws:
BadLocationException

testLineBeginsComment

public void testLineBeginsComment()
                           throws BadLocationException
Throws:
BadLocationException

testFooLine

public void testFooLine()
                 throws BadLocationException
Throws:
BadLocationException

testLineEndsComment

public void testLineEndsComment()
                         throws BadLocationException
Throws:
BadLocationException

testBarLine

public void testBarLine()
                 throws BadLocationException
Throws:
BadLocationException

testSlashStarMidLineBefore

public void testSlashStarMidLineBefore()
                                throws BadLocationException
Throws:
BadLocationException

testSlashStarMidLineAfter

public void testSlashStarMidLineAfter()
                               throws BadLocationException
Throws:
BadLocationException

testCommentedOutSlashStar

public void testCommentedOutSlashStar()
                               throws BadLocationException
Throws:
BadLocationException

testStarSlashMidLineBefore

public void testStarSlashMidLineBefore()
                                throws BadLocationException
Throws:
BadLocationException

testStarSlashMidLineAfter

public void testStarSlashMidLineAfter()
                               throws BadLocationException
Throws:
BadLocationException

testAfterCommentedOutSlashStar

public void testAfterCommentedOutSlashStar()
                                    throws BadLocationException
Throws:
BadLocationException