|
||||||||||
| 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.BackSlashTest
public final class BackSlashTest
Test the interactions between double quotes and backslashes.
| Field Summary | |
|---|---|
protected ReducedModelControl |
model0
|
protected ReducedModelControl |
model1
|
protected ReducedModelControl |
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 | |
|---|---|
BackSlashTest()
|
|
| Method Summary | |
|---|---|
protected void |
insertGap(BraceReduction model,
int size)
Convenience function to insert a number of non-special characters into a reduced model. |
protected void |
setUp()
Initializes the reduced models used in the tests. |
static Test |
suite()
Creates a test suite for JUnit to use. |
void |
testBackSlashBeforeDoubleEscape()
Tests the case when a backslash is inserted before two backslashes. |
void |
testChainEffect()
Tests cases where a long chain of backslashes and quotes can be all altered with a simple insertion or deletion of a special character. |
void |
testDeleteAndCombine()
Tests the case where deletion combines a backslash and a quote or two backslashes. |
void |
testDeleteAndCombine2()
Tests more of the same sort of cases as found in testDeleteAndCombine(). |
void |
testDeleteAndCombine3()
More of the same sort of cases as found in testDeleteAndCombine(). |
void |
testInsertBetweenDoubleEscape()
Tests the case where a backslash breaks up two backslashes together. |
void |
testInsideQuoteNext()
Tests the relationship between backslashes and quotes. |
void |
testInsideQuotePrevious()
Tests the relationship between backslash characters and quote characters. |
| 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 |
| Field Detail |
|---|
protected ReducedModelControl model0
protected ReducedModelControl model1
protected ReducedModelControl model2
| Constructor Detail |
|---|
public BackSlashTest()
| Method Detail |
|---|
protected void setUp()
throws Exception
setUp in class BraceReductionTestCaseException - This convention is mandated by JUnit.TestCase, the superclass of this class.public static Test suite()
protected void insertGap(BraceReduction model,
int size)
insertGap in class BraceReductionTestCasemodel - the model being modifiedsize - the number of characters being insertedpublic void testInsideQuotePrevious()
public void testInsideQuoteNext()
public void testBackSlashBeforeDoubleEscape()
public void testInsertBetweenDoubleEscape()
public void testDeleteAndCombine()
public void testDeleteAndCombine2()
public void testDeleteAndCombine3()
public void testChainEffect()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||