org.antlr.test
Class TestTokenRewriteStream

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.antlr.test.BaseTest
              extended by org.antlr.test.TestTokenRewriteStream
All Implemented Interfaces:
junit.framework.Test

public class TestTokenRewriteStream
extends BaseTest


Nested Class Summary
 
Nested classes/interfaces inherited from class org.antlr.test.BaseTest
BaseTest.StreamVacuum
 
Field Summary
 
Fields inherited from class org.antlr.test.BaseTest
CLASSPATH, jikes, pathSep, stderr, tmpdir
 
Constructor Summary
TestTokenRewriteStream()
          Public default constructor used by TestRig
 
Method Summary
 void test2InsertBeforeAfterMiddleIndex()
           
 void test2InsertMiddleIndex()
           
 void test2InsertThenReplaceIndex0()
           
 void test2ReplaceMiddleIndex()
           
 void testInsertAfterLastIndex()
           
 void testInsertBeforeIndex0()
           
 void testInsertThenReplaceLastIndex()
           
 void testInsertThenReplaceSameIndex()
           
 void testReplaceAll()
           
 void testReplaceIndex0()
           
 void testReplaceLastIndex()
           
 void testReplaceMiddleIndex()
           
 void testReplaceRangeThenInsertAfterRightEdge()
           
 void testReplaceRangeThenInsertAtLeftEdge()
           
 void testReplaceRangeThenInsertAtRightEdge()
           
 void testReplaceRangeThenInsertInMiddle()
           
 void testReplaceSingleMiddleThenOverlappingSuperset()
           
 void testReplaceSubsetThenFetch()
           
 void testReplaceThen2InsertSameIndex()
           
 void testReplaceThenDeleteMiddleIndex()
           
 void testReplaceThenInsertAfterLastIndex()
           
 void testReplaceThenInsertBeforeLastIndex()
           
 void testReplaceThenInsertSameIndex()
           
 void testReplaceThenReplaceLowerIndexedSuperset()
           
 void testReplaceThenReplaceSuperset()
           
 
Methods inherited from class org.antlr.test.BaseTest
antlr, compile, eraseFiles, execParser, execTreeParser, execTreeParser, getFirstLineOfException, mkdir, newTool, rawExecRecognizer, rawGenerateAndBuildRecognizer, writeFile, writeTemplateTestFile, writeTestFile, writeTreeTestFile
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TestTokenRewriteStream

public TestTokenRewriteStream()
Public default constructor used by TestRig

Method Detail

testInsertBeforeIndex0

public void testInsertBeforeIndex0()
                            throws java.lang.Exception
Throws:
java.lang.Exception

testInsertAfterLastIndex

public void testInsertAfterLastIndex()
                              throws java.lang.Exception
Throws:
java.lang.Exception

test2InsertBeforeAfterMiddleIndex

public void test2InsertBeforeAfterMiddleIndex()
                                       throws java.lang.Exception
Throws:
java.lang.Exception

testReplaceIndex0

public void testReplaceIndex0()
                       throws java.lang.Exception
Throws:
java.lang.Exception

testReplaceLastIndex

public void testReplaceLastIndex()
                          throws java.lang.Exception
Throws:
java.lang.Exception

testReplaceMiddleIndex

public void testReplaceMiddleIndex()
                            throws java.lang.Exception
Throws:
java.lang.Exception

test2ReplaceMiddleIndex

public void test2ReplaceMiddleIndex()
                             throws java.lang.Exception
Throws:
java.lang.Exception

testReplaceThenDeleteMiddleIndex

public void testReplaceThenDeleteMiddleIndex()
                                      throws java.lang.Exception
Throws:
java.lang.Exception

testReplaceThenInsertSameIndex

public void testReplaceThenInsertSameIndex()
                                    throws java.lang.Exception
Throws:
java.lang.Exception

testReplaceThen2InsertSameIndex

public void testReplaceThen2InsertSameIndex()
                                     throws java.lang.Exception
Throws:
java.lang.Exception

testInsertThenReplaceSameIndex

public void testInsertThenReplaceSameIndex()
                                    throws java.lang.Exception
Throws:
java.lang.Exception

test2InsertMiddleIndex

public void test2InsertMiddleIndex()
                            throws java.lang.Exception
Throws:
java.lang.Exception

test2InsertThenReplaceIndex0

public void test2InsertThenReplaceIndex0()
                                  throws java.lang.Exception
Throws:
java.lang.Exception

testReplaceThenInsertBeforeLastIndex

public void testReplaceThenInsertBeforeLastIndex()
                                          throws java.lang.Exception
Throws:
java.lang.Exception

testInsertThenReplaceLastIndex

public void testInsertThenReplaceLastIndex()
                                    throws java.lang.Exception
Throws:
java.lang.Exception

testReplaceThenInsertAfterLastIndex

public void testReplaceThenInsertAfterLastIndex()
                                         throws java.lang.Exception
Throws:
java.lang.Exception

testReplaceRangeThenInsertInMiddle

public void testReplaceRangeThenInsertInMiddle()
                                        throws java.lang.Exception
Throws:
java.lang.Exception

testReplaceRangeThenInsertAtLeftEdge

public void testReplaceRangeThenInsertAtLeftEdge()
                                          throws java.lang.Exception
Throws:
java.lang.Exception

testReplaceRangeThenInsertAtRightEdge

public void testReplaceRangeThenInsertAtRightEdge()
                                           throws java.lang.Exception
Throws:
java.lang.Exception

testReplaceRangeThenInsertAfterRightEdge

public void testReplaceRangeThenInsertAfterRightEdge()
                                              throws java.lang.Exception
Throws:
java.lang.Exception

testReplaceAll

public void testReplaceAll()
                    throws java.lang.Exception
Throws:
java.lang.Exception

testReplaceSubsetThenFetch

public void testReplaceSubsetThenFetch()
                                throws java.lang.Exception
Throws:
java.lang.Exception

testReplaceThenReplaceSuperset

public void testReplaceThenReplaceSuperset()
                                    throws java.lang.Exception
Throws:
java.lang.Exception

testReplaceThenReplaceLowerIndexedSuperset

public void testReplaceThenReplaceLowerIndexedSuperset()
                                                throws java.lang.Exception
Throws:
java.lang.Exception

testReplaceSingleMiddleThenOverlappingSuperset

public void testReplaceSingleMiddleThenOverlappingSuperset()
                                                    throws java.lang.Exception
Throws:
java.lang.Exception