edu.rice.cs.drjava.model.definitions.indent
Class ActionStartPrevLinePlusMultilinePreserveTest
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.ActionStartPrevLinePlusMultilinePreserveTest
- All Implemented Interfaces:
- Test
public class ActionStartPrevLinePlusMultilinePreserveTest
- extends IndentRulesTestCase
Tests ActionStartPrevLinePlusMultilinePreserve(String,int,int,int,int).
It specifically tests the behavior of the auto-closing comments feature.
This means it tests cases where the user has just hit ENTER somewhere
on the opening line of a block comment.
- Version:
- $Id: ActionStartPrevLinePlusMultilinePreserveTest.java 4674 2008-11-05 18:37:06Z 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 |
ActionStartPrevLinePlusMultilinePreserveTest
public ActionStartPrevLinePlusMultilinePreserveTest()
helperCommentTest
public void helperCommentTest(String start,
int loc,
int endLoc,
String finish)
throws BadLocationException
- This method abstracts the common behavior in subsequent tests.
- Parameters:
start
- The text that should be in the document at time rule is calledloc
- the location of the cursor when rule is calledendLoc
- the expected final size of the documentfinish
- the text string that remaining after the rule is called
- Throws:
BadLocationException
test1
public void test1()
throws BadLocationException
- Throws:
BadLocationException
test2
public void test2()
throws BadLocationException
- Throws:
BadLocationException
test3
public void test3()
throws BadLocationException
- Throws:
BadLocationException
test4
public void test4()
throws BadLocationException
- Throws:
BadLocationException
test5
public void test5()
throws BadLocationException
- Throws:
BadLocationException
test6
public void test6()
throws BadLocationException
- Throws:
BadLocationException
test7
public void test7()
throws BadLocationException
- Throws:
BadLocationException
test8
public void test8()
throws BadLocationException
- Throws:
BadLocationException
xtest9
public void xtest9()
throws BadLocationException
- Throws:
BadLocationException
test10
public void test10()
throws BadLocationException
- Throws:
BadLocationException
test11
public void test11()
throws BadLocationException
- Throws:
BadLocationException