org.antlr.test
Class TestTreeWizard

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

public class TestTreeWizard
extends BaseTest


Nested Class Summary
 
Nested classes/interfaces inherited from class org.antlr.test.BaseTest
BaseTest.StreamVacuum
 
Field Summary
protected static TreeAdaptor adaptor
           
protected static java.lang.String[] tokens
           
 
Fields inherited from class org.antlr.test.BaseTest
CLASSPATH, jikes, pathSep, stderr, tmpdir
 
Constructor Summary
TestTreeWizard()
           
 
Method Summary
 void testDoubleLevelTree()
           
 void testEquals()
           
 void testEqualsWithMismatchedText()
           
 void testEqualsWithText()
           
 void testFindPattern()
           
 void testInvalidListTree()
           
 void testListTree()
           
 void testNoRepeatsIndex()
           
 void testNoRepeatsVisit()
           
 void testNoRepeatsVisit2()
           
 void testParse()
           
 void testParseFlatTree()
           
 void testParseLabels()
           
 void testParseLabelsAndTestText()
           
 void testParseLabelsInNestedTree()
           
 void testParseSingleNode()
           
 void testParseWithText()
           
 void testParseWithTextFails()
           
 void testParseWithWildcardLabels()
           
 void testRepeatsIndex()
           
 void testRepeatsVisit()
           
 void testRepeatsVisit2()
           
 void testRepeatsVisitWithContext()
           
 void testRepeatsVisitWithNullParentAndContext()
           
 void testSingleLevelTree()
           
 void testSingleNode()
           
 void testSingleNodeIndex()
           
 void testSingleNodeTree()
           
 void testSingleNodeWithArg()
           
 void testVisitPattern()
           
 void testVisitPatternMultiple()
           
 void testVisitPatternMultipleWithLabels()
           
 void testWildcard()
           
 
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
 

Field Detail

tokens

protected static final java.lang.String[] tokens

adaptor

protected static final TreeAdaptor adaptor
Constructor Detail

TestTreeWizard

public TestTreeWizard()
Method Detail

testSingleNode

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

testSingleNodeWithArg

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

testSingleNodeTree

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

testSingleLevelTree

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

testListTree

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

testInvalidListTree

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

testDoubleLevelTree

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

testSingleNodeIndex

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

testNoRepeatsIndex

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

testRepeatsIndex

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

testNoRepeatsVisit

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

testNoRepeatsVisit2

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

testRepeatsVisit

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

testRepeatsVisit2

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

testRepeatsVisitWithContext

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

testRepeatsVisitWithNullParentAndContext

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

testVisitPattern

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

testVisitPatternMultiple

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

testVisitPatternMultipleWithLabels

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

testParse

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

testParseSingleNode

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

testParseFlatTree

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

testWildcard

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

testParseWithText

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

testParseWithTextFails

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

testParseLabels

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

testParseWithWildcardLabels

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

testParseLabelsAndTestText

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

testParseLabelsInNestedTree

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

testEquals

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

testEqualsWithText

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

testEqualsWithMismatchedText

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

testFindPattern

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