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 $
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 |
QuestionCurrLineStartsWithTest
public QuestionCurrLineStartsWithTest(String name)
- Tests the indentation decision tree.
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.