edu.rice.cs.drjava.model.definitions.reducedmodel
Class ReducedModelDeleteTest

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.reducedmodel.BraceReductionTestCase
                  extended by edu.rice.cs.drjava.model.definitions.reducedmodel.ReducedModelDeleteTest
All Implemented Interfaces:
ReducedModelStates, Test

public final class ReducedModelDeleteTest
extends BraceReductionTestCase
implements ReducedModelStates

Test the delete functionality of the reduced model.

Version:
$Id: ReducedModelDeleteTest.java 4653 2008-08-26 14:46:35Z rcartwright $

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
ReducedModelDeleteTest()
           
 
Method Summary
 void deleteLineCommentSlashOpensBlockComment()
           
 void testBlockCommentStartEatsEnd()
           
 void testCrazyDelete()
           
 void testDeleteAndMergeTwoGaps()
          Tests reduced model behavioir for deleting text then merging two gaps.
 void testDeleteBlockCommentMakesLineComment()
           
 void testDeleteFreesBlockCommentEnd()
           
 void testDeleteNewlineAndShadowBlockCommentStart()
           
 void testHalfLineComment()
          Tests that line comments after code are indeted correctly.
 void testInnerGapDelete()
          Tests that inner gaps are deleted correctcly.
 void testLineCommentStealsBlockCommentSlash()
           
 void testLineCommentStealsLineCommentSlash()
           
 void testStartDeleteGap()
           
 void testUnmaskBlockCommentedLineComment()
           
 
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

ReducedModelDeleteTest

public ReducedModelDeleteTest()
Method Detail

testHalfLineComment

public void testHalfLineComment()
Tests that line comments after code are indeted correctly.


testInnerGapDelete

public void testInnerGapDelete()
Tests that inner gaps are deleted correctcly.


testDeleteAndMergeTwoGaps

public void testDeleteAndMergeTwoGaps()
Tests reduced model behavioir for deleting text then merging two gaps.


testDeleteBlockCommentMakesLineComment

public void testDeleteBlockCommentMakesLineComment()

testLineCommentStealsBlockCommentSlash

public void testLineCommentStealsBlockCommentSlash()

testLineCommentStealsLineCommentSlash

public void testLineCommentStealsLineCommentSlash()

testDeleteNewlineAndShadowBlockCommentStart

public void testDeleteNewlineAndShadowBlockCommentStart()

testBlockCommentStartEatsEnd

public void testBlockCommentStartEatsEnd()

deleteLineCommentSlashOpensBlockComment

public void deleteLineCommentSlashOpensBlockComment()

testStartDeleteGap

public void testStartDeleteGap()

testDeleteFreesBlockCommentEnd

public void testDeleteFreesBlockCommentEnd()

testUnmaskBlockCommentedLineComment

public void testUnmaskBlockCommentedLineComment()

testCrazyDelete

public void testCrazyDelete()