edu.rice.cs.drjava.model.definitions.indent
Class QuestionStartAfterOpenBraceTest
java.lang.Object
|
+--junit.framework.Assert
|
+--junit.framework.TestCase
|
+--edu.rice.cs.drjava.model.definitions.indent.IndentRulesTestCase
|
+--edu.rice.cs.drjava.model.definitions.indent.QuestionStartAfterOpenBraceTest
- All Implemented Interfaces:
- Test
- public class QuestionStartAfterOpenBraceTest
- extends IndentRulesTestCase
Test class according to the JUnit protocol.
Tests the question determining whether or not the closest non-whitespace character
previous to the start of the current line (excluding any characters
inside comments or strings) is an open brace.
- Version:
- $Id: QuestionStartAfterOpenBraceTest.java,v 1.4 2002/03/30 08:38:28 csreis Exp $
Methods inherited from class junit.framework.TestCase |
countTestCases, createResult, getName, name, run, run, runBare, runTest, setName, tearDown, toString |
Methods inherited from class junit.framework.Assert |
assert, assert, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertNotNull, assertNotNull, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame |
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait |
_text
private String _text
_rule
private IndentRuleQuestion _rule
QuestionStartAfterOpenBraceTest
public QuestionStartAfterOpenBraceTest(String name)
- Parameters:
name
- The name of this test case.
setUp
public void setUp()
- Description copied from class:
IndentRulesTestCase
- Sets up the test environment.
- Overrides:
setUp
in class IndentRulesTestCase
testNoBrace
public void testNoBrace()
throws BadLocationException
testRightAfterBrace
public void testRightAfterBrace()
throws BadLocationException
testWSAfterBrace
public void testWSAfterBrace()
throws BadLocationException
testCommentsAfterBrace
public void testCommentsAfterBrace()
throws BadLocationException
testBraceLastCharOnLine
public void testBraceLastCharOnLine()
throws BadLocationException
testTextAfterBrace
public void testTextAfterBrace()
throws BadLocationException