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 test2ReplaceMiddleIndex1InsertBefore()
           
 void testCombine3Inserts()
           
 void testCombineInsertOnLeftWithDelete()
           
 void testCombineInsertOnLeftWithReplace()
           
 void testCombineInserts()
           
 void testDisjointInserts()
           
 void testDropIdenticalReplace()
           
 void testDropPrevCoveredInsert()
           
 void testInsertAfterLastIndex()
           
 void testInsertBeforeIndex0()
           
 void testInsertInPriorReplace()
           
 void testInsertThenReplaceLastIndex()
           
 void testInsertThenReplaceSameIndex()
           
 void testLeaveAloneDisjointInsert()
           
 void testLeaveAloneDisjointInsert2()
           
 void testOverlappingReplace()
           
 void testOverlappingReplace2()
           
 void testOverlappingReplace3()
           
 void testOverlappingReplace4()
           
 void testReplaceAll()
           
 void testReplaceIndex0()
           
 void testReplaceLastIndex()
           
 void testReplaceMiddleIndex()
           
 void testReplaceRangeThenInsertAfterRightEdge()
           
 void testReplaceRangeThenInsertAtLeftEdge()
           
 void testReplaceRangeThenInsertAtRightEdge()
           
 void testReplaceSingleMiddleThenOverlappingSuperset()
           
 void testReplaceSubsetThenFetch()
           
 void testReplaceThenDeleteMiddleIndex()
           
 void testReplaceThenInsertAfterLastIndex()
           
 void testReplaceThenInsertBeforeLastIndex()
           
 void testReplaceThenReplaceLowerIndexedSuperset()
           
 void testReplaceThenReplaceSuperset()
           
 void testToStringStartStop()
           
 void testToStringStartStop2()
           
 
Methods inherited from class org.antlr.test.BaseTest
antlr, checkGrammarSemanticsError, checkGrammarSemanticsWarning, compile, eraseFiles, execLexer, execParser, execTreeParser, execTreeParser, getFirstLineOfException, mkdir, newTool, newTool, rawExecRecognizer, rawGenerateAndBuildRecognizer, realElements, realElements, setUp, writeFile, writeLexerTestFile, writeTemplateTestFile, writeTestFile, writeTreeAndTreeTestFile, writeTreeTestFile
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, 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

testToStringStartStop

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

testToStringStartStop2

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

test2ReplaceMiddleIndex

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

test2ReplaceMiddleIndex1InsertBefore

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

testReplaceThenDeleteMiddleIndex

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

testInsertInPriorReplace

public void testInsertInPriorReplace()
                              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

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

testCombineInserts

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

testCombine3Inserts

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

testCombineInsertOnLeftWithReplace

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

testCombineInsertOnLeftWithDelete

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

testDisjointInserts

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

testOverlappingReplace

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

testOverlappingReplace2

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

testOverlappingReplace3

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

testOverlappingReplace4

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

testDropIdenticalReplace

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

testDropPrevCoveredInsert

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

testLeaveAloneDisjointInsert

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

testLeaveAloneDisjointInsert2

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