edu.rice.cs.drjava.model.definitions.indent
Class QuestionCurrLineIsWingCommentTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by edu.rice.cs.drjava.DrJavaTestCase
              extended by edu.rice.cs.drjava.model.definitions.indent.IndentRulesTestCase
                  extended by edu.rice.cs.drjava.model.definitions.indent.QuestionCurrLineIsWingCommentTest
All Implemented Interfaces:
Test

public final class QuestionCurrLineIsWingCommentTest
extends IndentRulesTestCase

Tests visitor class that determines whether the current line is a wing comment.

Version:
$Id: QuestionCurrLineIsWingCommentTest.java 5236 2010-04-27 01:43:36Z mgricken $

Nested Class Summary
 
Nested classes/interfaces inherited from class junit.framework.TestCase
TestCase.WrappedException
 
Field Summary
(package private) static IndentRuleQuestion _rule
           
(package private) static java.lang.String cornerCase
           
 
Fields inherited from class edu.rice.cs.drjava.model.definitions.indent.IndentRulesTestCase
_doc, TEST_INDENT_LEVEL
 
Constructor Summary
QuestionCurrLineIsWingCommentTest()
           
 
Method Summary
 void testCornerCase()
           
 void testSpaces()
           
 void testWingComment()
           
 void testWingInsideBlock()
           
 
Methods inherited from class edu.rice.cs.drjava.model.definitions.indent.IndentRulesTestCase
_assertContents, _setDocText, setUp, tearDown
 
Methods inherited from class edu.rice.cs.drjava.DrJavaTestCase
setConfigSetting, setDocText
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, toString
 
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
 

Field Detail

_rule

static IndentRuleQuestion _rule

cornerCase

static java.lang.String cornerCase
Constructor Detail

QuestionCurrLineIsWingCommentTest

public QuestionCurrLineIsWingCommentTest()
Method Detail

testWingComment

public void testWingComment()
                     throws javax.swing.text.BadLocationException
Throws:
javax.swing.text.BadLocationException

testSpaces

public void testSpaces()
                throws javax.swing.text.BadLocationException
Throws:
javax.swing.text.BadLocationException

testCornerCase

public void testCornerCase()
                    throws javax.swing.text.BadLocationException
Throws:
javax.swing.text.BadLocationException

testWingInsideBlock

public void testWingInsideBlock()
                         throws javax.swing.text.BadLocationException
Throws:
javax.swing.text.BadLocationException