|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--junit.framework.Assert | +--junit.framework.TestCase | +--edu.rice.cs.drjava.model.definitions.reducedmodel.BraceReductionTestCase | +--edu.rice.cs.drjava.model.definitions.reducedmodel.ReducedModelTest
Tests insertion and move and other non-delete functionality of the reduced model.
Field Summary | |
protected ReducedModelControl |
model0
|
protected ReducedModelControl |
model1
|
protected ReducedModelControl |
model2
|
Fields inherited from class junit.framework.TestCase |
fName |
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(String name)
put your documentation comment here |
Method Summary | |
protected void |
insertGap(BraceReduction model,
int size)
put your documentation comment here |
protected void |
setUp()
put your documentation comment here |
protected ReducedModelControl |
setUpExample()
sets up example reduction for the following tests |
static Test |
suite()
put your documentation comment here |
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()
put your documentation comment here |
void |
testInsertBraceAndBreakBlockCommentStart()
Tests the reduced model's ability to insert braces correctly |
void |
testInsertBraceAndBreakLineComment()
put your documentation comment here |
void |
testInsertBraceAtStartAndEnd()
put your documentation comment here |
void |
testInsertBraceInsideGap()
|
void |
testInsertBraces()
tests inserting braces |
void |
testInsertGap()
put your documentation comment here |
void |
testInsertGap2()
tests inserting gaps |
void |
testInsertGapAfterGap()
put your documentation comment here |
void |
testInsertGapBeforeGap()
Test that a gap inserted previous to a gap, unites with that gap. |
void |
testInsertGapInsideGap()
Inserts one gap inside of the other |
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 |
stateOfCurrentToken |
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 |
|
Field Detail |
protected ReducedModelControl model0
protected ReducedModelControl model1
protected ReducedModelControl model2
Constructor Detail |
public ReducedModelTest(String name)
String
- nameMethod Detail |
protected void setUp()
setUp
in class TestCase
protected void insertGap(BraceReduction model, int size)
model
- size
- public static Test suite()
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()
public void testBalanceBackward()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |