| edu.rice.cs.drjava.model.definitions.indent.IndentRulesTestCase edu.rice.cs.drjava.model.definitions.indent.QuestionStartingNewStmtTest
QuestionStartingNewStmtTest | final public class QuestionStartingNewStmtTest extends IndentRulesTestCase (Code) | | Tests the question rule which determines if the current line
is starting a new statement.
version: $Id: QuestionStartingNewStmtTest.java 4255 2007-08-28 19:17:37Z mgricken $ |
testNotStartOfStmtDueToEndCharactersInCommentsOrQuotes | public void testNotStartOfStmtDueToEndCharactersInCommentsOrQuotes() throws BadLocationException(Code) | | 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.
|
testStartOfStmtCheckForEndCharacters | public void testStartOfStmtCheckForEndCharacters() throws BadLocationException(Code) | | 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'.
|
testStartOfStmtIgnoreWhiteSpaceAndCommentsInBetween | public void testStartOfStmtIgnoreWhiteSpaceAndCommentsInBetween() throws BadLocationException(Code) | | 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.
|
|
|