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 4519 2008-06-15 07:14:29Z rcartwright $
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 |
QuestionLineContainsTest
public QuestionLineContainsTest()
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.
- Throws:
BadLocationException
testLineDoesNotContainColon
public void testLineDoesNotContainColon()
throws BadLocationException
- Ensures that a line containing a colon is detected.
Tests that a line does not contain a colon.
- Throws:
BadLocationException
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.
- Throws:
BadLocationException
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.
- Throws:
BadLocationException