|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
edu.rice.cs.drjava.DrJavaTestCase
edu.rice.cs.drjava.model.definitions.indent.IndentRulesTestCase
edu.rice.cs.drjava.model.definitions.indent.QuestionCurrLineStartsWithTest
public final class QuestionCurrLineStartsWithTest
Tests the indention rule which detects whether the current line starts with a particular string.
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 | |
---|---|
QuestionCurrLineStartsWithTest()
|
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, 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 |
---|
public QuestionCurrLineStartsWithTest()
Method Detail |
---|
public void testNoPrefix() throws BadLocationException
BadLocationException
public void testStartsWithPrefixWithText() throws BadLocationException
BadLocationException
public void testStartsWithPrefixNoText() throws BadLocationException
BadLocationException
public void testMultipleCharPrefix() throws BadLocationException
BadLocationException
public void testCommentedPrefixDontSearchComment() throws BadLocationException
BadLocationException
public void testCommentedPrefixSearchComment() throws BadLocationException
BadLocationException
public void testDoesNotStartWithPrefix() throws BadLocationException
BadLocationException
public void testPrefixAtEnd() throws BadLocationException
BadLocationException
public void testMultCharPrefix() throws BadLocationException
BadLocationException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |