edu.rice.cs.drjava.model.definitions.indent
Class QuestionLineContainsTest
java.lang.Object
junit.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.QuestionLineContainsTest
- All Implemented Interfaces:
- Test
public final 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 5175 2010-01-20 08:46:32Z mgricken $
| 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 |
QuestionLineContainsTest
public QuestionLineContainsTest()
testLineContainsColon
public void testLineContainsColon()
throws javax.swing.text.BadLocationException
- Ensures that a line containing a colon is detected.
Tests that a line of text containing a colon is detected.
- Throws:
javax.swing.text.BadLocationException
testLineDoesNotContainColon
public void testLineDoesNotContainColon()
throws javax.swing.text.BadLocationException
- Ensures that a line containing a colon is detected.
Tests that a line does not contain a colon.
- Throws:
javax.swing.text.BadLocationException
testLineDoesNotContainColonDueToComments
public void testLineDoesNotContainColonDueToComments()
throws javax.swing.text.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.
- Throws:
javax.swing.text.BadLocationException
testLineDoesNotContainColonDueToQuotes
public void testLineDoesNotContainColonDueToQuotes()
throws javax.swing.text.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.
- Throws:
javax.swing.text.BadLocationException