edu.rice.cs.drjava.model.definitions.indent
Class QuestionStartingNewStmtTest
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.QuestionStartingNewStmtTest
- All Implemented Interfaces:
- Test
public final class QuestionStartingNewStmtTest
- extends IndentRulesTestCase
Tests the question rule which determines if the current line
is starting a new statement.
- Version:
- $Id: QuestionStartingNewStmtTest.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 |
QuestionStartingNewStmtTest
public QuestionStartingNewStmtTest()
testStartOfStmtCheckForEndCharacters
public void testStartOfStmtCheckForEndCharacters()
throws BadLocationException
- Ensures that the current line is the first line of a statement.
This is done by testing if the previous character is one of
the following: docstart, ';', '{', '}'
These characters are here-on refered to as 'end-characters'.
- Throws:
BadLocationException
testStartOfStmtIgnoreWhiteSpaceAndCommentsInBetween
public void testStartOfStmtIgnoreWhiteSpaceAndCommentsInBetween()
throws BadLocationException
- Ensures that the current line is the first line of a statement.
Tests that whitespace, single-line and multi-line comments
are ignored when searching for the end-characters.
- Throws:
BadLocationException
testNotStartOfStmtDueToEndCharactersInCommentsOrQuotes
public void testNotStartOfStmtDueToEndCharactersInCommentsOrQuotes()
throws BadLocationException
- Ensures that the current line is the first line of a statement.
Tests that end characters in single-line comments, multi-line
comments or quotes are ignored.
- Throws:
BadLocationException