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

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

public class QuestionLineContainsTest
extends IndentRulesTestCase

Tests the question rule which determines if the current line in the document contains the given character.

All tests check for the ':' character on the current line.

Version:
$Id: QuestionLineContainsTest.java,v 1.1 2002/03/22 12:34:32 goberoi Exp $

Fields inherited from class edu.rice.cs.drjava.model.definitions.indent.IndentRulesTestCase
_doc, _indent
 
Fields inherited from class junit.framework.TestCase
fName
 
Constructor Summary
QuestionLineContainsTest(String name)
          Tests the indentation decision tree.
 
Method Summary
 void testLineContainsColon()
          Ensures that a line containing a colon is detected.
 void testLineDoesNotContainColon()
          Ensures that a line containing a colon is detected.
 void testLineDoesNotContainColonDueToComments()
          Ensures that a line containing a colon is detected.
 void testLineDoesNotContainColonDueToQuotes()
          Ensures that a line containing a colon is detected.
 
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
 

Constructor Detail

QuestionLineContainsTest

public QuestionLineContainsTest(String name)
Tests the indentation decision tree.
Method Detail

testLineContainsColon

public void testLineContainsColon()
                           throws BadLocationException
Ensures that a line containing a colon is detected. Tests that a line of text containing a colon is detected.

testLineDoesNotContainColon

public void testLineDoesNotContainColon()
                                 throws BadLocationException
Ensures that a line containing a colon is detected. Tests that a line does not contain a colon.

testLineDoesNotContainColonDueToComments

public void testLineDoesNotContainColonDueToComments()
                                              throws BadLocationException
Ensures that a line containing a colon is detected. Tests that a line containing a commented out colon is identified as a line that does not contain a colon.

testLineDoesNotContainColonDueToQuotes

public void testLineDoesNotContainColonDueToQuotes()
                                            throws BadLocationException
Ensures that a line containing a colon is detected. Tests that a line containing a colon in quotes is identified as a line that does not contain a colon.