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

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

public class QuestionCurrLineStartsWithTest
extends IndentRulesTestCase

Tests the indention rule which detects whether the current line starts with a particular string.

Version:
$Id: QuestionCurrLineStartsWithTest.java,v 1.3 2002/04/11 16:31:02 johngarvin 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
QuestionCurrLineStartsWithTest(String name)
          Tests the indentation decision tree.
 
Method Summary
 void testCommentedPrefixDontSearchComment()
          Tests having a commented prefix without searching in comments.
 void testCommentedPrefixSearchComment()
          Tests having a commented prefix with searching in comments.
 void testDoesNotStartWithPrefix()
          Tests having text on a line before the prefix.
 void testMultCharPrefix()
          Tests multiple-character prefix.
 void testMultipleCharPrefix()
          Tests having a multiple character prefix.
 void testNoPrefix()
          Tests not having the prefix in the text.
 void testPrefixAtEnd()
          Prefix appears at the end of a document.
 void testStartsWithPrefixNoText()
          Tests having a line start with prefix, with no text following
 void testStartsWithPrefixWithText()
          Tests having a line start with prefix, with text following
 
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

QuestionCurrLineStartsWithTest

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

testNoPrefix

public void testNoPrefix()
                  throws BadLocationException
Tests not having the prefix in the text.

testStartsWithPrefixWithText

public void testStartsWithPrefixWithText()
                                  throws BadLocationException
Tests having a line start with prefix, with text following

testStartsWithPrefixNoText

public void testStartsWithPrefixNoText()
                                throws BadLocationException
Tests having a line start with prefix, with no text following

testMultipleCharPrefix

public void testMultipleCharPrefix()
                            throws BadLocationException
Tests having a multiple character prefix.

testCommentedPrefixDontSearchComment

public void testCommentedPrefixDontSearchComment()
                                          throws BadLocationException
Tests having a commented prefix without searching in comments.

testCommentedPrefixSearchComment

public void testCommentedPrefixSearchComment()
                                      throws BadLocationException
Tests having a commented prefix with searching in comments.

testDoesNotStartWithPrefix

public void testDoesNotStartWithPrefix()
                                throws BadLocationException
Tests having text on a line before the prefix.

testPrefixAtEnd

public void testPrefixAtEnd()
                     throws BadLocationException
Prefix appears at the end of a document.

testMultCharPrefix

public void testMultCharPrefix()
                        throws BadLocationException
Tests multiple-character prefix.