org.antlr.test
Class TestTrees

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

public class TestTrees
extends BaseTest


Nested Class Summary
 
Nested classes/interfaces inherited from class org.antlr.test.BaseTest
BaseTest.StreamVacuum
 
Field Summary
protected  boolean debug
           
 
Fields inherited from class org.antlr.test.BaseTest
CLASSPATH, jikes, pathSep, stderr, tmpdir
 
Constructor Summary
TestTrees()
           
 
Method Summary
 void test4Nodes()
           
 void testAddListToExistChildren()
           
 void testBecomeRoot()
           
 void testBecomeRoot2()
           
 void testBecomeRoot3()
           
 void testBecomeRoot5()
           
 void testBecomeRoot6()
           
 void testDupTree()
           
 void testList()
           
 void testList2()
           
 void testReplaceAllWithOne()
           
 void testReplaceAllWithTwo()
           
 void testReplaceAtLeft()
           
 void testReplaceAtRight()
           
 void testReplaceInMiddle()
           
 void testReplaceOneWithTwoAtLeft()
           
 void testReplaceOneWithTwoAtRight()
           
 void testReplaceOneWithTwoInMiddle()
           
 void testReplaceTwoWithOneAtLeft()
           
 void testReplaceTwoWithOneAtRight()
           
 void testReplaceWithNoChildren()
           
 void testReplaceWithOneChildren()
           
 void testSingleNode()
           
 void testTwoChildrenOfNilRoot()
           
 
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
 

Field Detail

debug

protected boolean debug
Constructor Detail

TestTrees

public TestTrees()
Method Detail

testSingleNode

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

testTwoChildrenOfNilRoot

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

test4Nodes

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

testList

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

testList2

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

testAddListToExistChildren

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

testDupTree

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

testBecomeRoot

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

testBecomeRoot2

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

testBecomeRoot3

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

testBecomeRoot5

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

testBecomeRoot6

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

testReplaceWithNoChildren

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

testReplaceWithOneChildren

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

testReplaceInMiddle

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

testReplaceAtLeft

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

testReplaceAtRight

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

testReplaceOneWithTwoAtLeft

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

testReplaceOneWithTwoAtRight

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

testReplaceOneWithTwoInMiddle

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

testReplaceTwoWithOneAtLeft

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

testReplaceTwoWithOneAtRight

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

testReplaceAllWithOne

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

testReplaceAllWithTwo

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