|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
edu.rice.cs.drjava.DrJavaTestCase
edu.rice.cs.drjava.model.definitions.reducedmodel.BraceReductionTestCase
edu.rice.cs.drjava.model.definitions.reducedmodel.ReducedModelTest
public final class ReducedModelTest
Tests insertion and move and other non-delete functionality of the reduced model.
Field Summary |
---|
Fields inherited from class edu.rice.cs.drjava.model.definitions.reducedmodel.BraceReductionTestCase |
---|
model0, model1, model2 |
Fields inherited from class edu.rice.cs.drjava.DrJavaTestCase |
---|
TEST_DRJAVA_CONFIG_PROPERTY |
Fields inherited from interface edu.rice.cs.drjava.model.definitions.reducedmodel.ReducedModelStates |
---|
FREE, INSIDE_BLOCK_COMMENT, INSIDE_DOUBLE_QUOTE, INSIDE_LINE_COMMENT, INSIDE_SINGLE_QUOTE, STUTTER |
Constructor Summary | |
---|---|
ReducedModelTest()
|
Method Summary | |
---|---|
protected ReducedModelControl |
setUpExample()
sets up example reduction for the following tests |
void |
testBalanceBackward()
tests backwards balancer, e.g., ')' balances with '(' |
void |
testBalanceForward()
tests forward balancer, e.g., '(' balances with ')' |
void |
testBasicBlockComment()
put your documentation comment here |
void |
testBreakBlockCommentWithStar()
put your documentation comment here |
void |
testBreakCloseBlockCommentWithStar()
put your documentation comment here |
void |
testComplexBraceInsertion()
Test to ensure that a complex sequence of multi-lined Brace entries does not fail. |
void |
testCrazyCase1()
put your documentation comment here |
void |
testCrazyCase2()
Test sequences of inserts |
void |
testGetStateAtCurrent()
put your documentation comment here |
void |
testInsertBlockCommentEnd()
put your documentation comment here |
void |
testInsertBlockInsideBlockComment()
put your documentation comment here |
void |
testInsertBrace()
Tests that inserting other forms of braces creates the proper tokens. |
void |
testInsertBraceAndBreakBlockCommentStart()
Tests inserting block comment opening "brace" followed by inserting characters between '/' and '*'. |
void |
testInsertBraceAndBreakLineComment()
Tests inserting line comment chars and then inserting a brace between them. |
void |
testInsertBraceAtStartAndEnd()
Tests that inserting a curly brace at the beginning/end of the document creates the proper tokens. |
void |
testInsertBraceInsideGap()
Tests that inserting a curly brace inside a gap creates the proper tokens. |
void |
testInsertBraces()
tests inserting braces |
void |
testInsertGap()
Put your documentation comment here. |
void |
testInsertGap2()
tests inserting gaps |
void |
testInsertGapAfterGap()
Tests that a gap inserted after a gap, unites with that gap. |
void |
testInsertGapBeforeGap()
Tests that a gap inserted before a gap, unites with that gap. |
void |
testInsertGapInsideGap()
Tests that a gap inserted inside another gap unites with the enclosing gap. |
void |
testInsertMultipleBraces()
|
void |
testInsertNewlineChainReaction()
put your documentation comment here |
void |
testInsertNewlineEndLineComment()
put your documentation comment here |
void |
testInsertNewlineEndQuote()
put your documentation comment here |
void |
testInsertQuoteToQuoteBlock()
put your documentation comment here |
void |
testInsideComment()
tests the function to test if something is inside comments |
void |
testInsideString()
tests the function to test if something is inside quotes |
void |
testLineCommentBreakCrazy()
put your documentation comment here |
void |
testMove()
tests the cursor movement function |
void |
testMove0StaysPut()
put your documentation comment here |
void |
testMoveOnEmpty()
put your documentation comment here |
void |
testMoveWithinToken()
put your documentation comment here |
void |
testQuoteBreakComment2()
put your documentation comment here |
void |
testQuoteBreaksComment()
put your documentation comment here |
void |
testQuotesSimple()
put your documentation comment here |
void |
testQuotesWithGap()
put your documentation comment here |
Methods inherited from class edu.rice.cs.drjava.model.definitions.reducedmodel.BraceReductionTestCase |
---|
insertGap, setUp |
Methods inherited from class edu.rice.cs.drjava.DrJavaTestCase |
---|
setConfigSetting, setDocText, tearDown |
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 |
Constructor Detail |
---|
public ReducedModelTest()
Method Detail |
---|
public void testBalanceBackward()
public void testInsertGap()
public void testInsertGapBeforeGap()
public void testInsertGapAfterGap()
public void testInsertGapInsideGap()
public void testInsertBraceAtStartAndEnd()
public void testInsertBraceInsideGap()
public void testInsertBrace()
public void testInsertBraceAndBreakLineComment()
public void testInsertBraceAndBreakBlockCommentStart()
public void testInsertMultipleBraces()
public void testComplexBraceInsertion()
public void testCrazyCase1()
public void testCrazyCase2()
public void testLineCommentBreakCrazy()
public void testBreakBlockCommentWithStar()
public void testBreakCloseBlockCommentWithStar()
public void testBasicBlockComment()
public void testInsertBlockInsideBlockComment()
public void testInsertBlockCommentEnd()
public void testGetStateAtCurrent()
public void testQuotesSimple()
public void testQuotesWithGap()
public void testInsertQuoteToQuoteBlock()
public void testQuoteBreaksComment()
public void testQuoteBreakComment2()
public void testInsertNewlineEndLineComment()
public void testInsertNewlineEndQuote()
public void testInsertNewlineChainReaction()
public void testMoveWithinToken()
public void testMoveOnEmpty()
public void testMove0StaysPut()
public void testInsideComment()
public void testInsideString()
public void testInsertBraces()
public void testInsertGap2()
public void testMove()
protected ReducedModelControl setUpExample()
public void testBalanceForward()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |