org.antlr.test
Class TestCompositeGrammars

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.antlr.test.BaseTest
              extended by org.antlr.test.TestCompositeGrammars
All Implemented Interfaces:
junit.framework.Test
Direct Known Subclasses:
DebugTestCompositeGrammars

public class TestCompositeGrammars
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
TestCompositeGrammars()
           
 
Method Summary
 void test3LevelImport()
          Make sure that M can import S that imports T.
 void testBigTreeOfImports()
           
 void testCombinedImportsCombined()
           
 void testDelegatesSeeSameTokenType()
           
 void testDelegatesSeeSameTokenType2()
           
 void testDelegatorAccessesDelegateMembers()
           
 void testDelegatorInvokesDelegateRule()
           
 void testDelegatorInvokesDelegateRuleWithArgs()
           
 void testDelegatorInvokesDelegateRuleWithReturnStruct()
           
 void testDelegatorInvokesFirstVersionOfDelegateRule()
           
 void testDelegatorRuleOverridesDelegate()
           
 void testDelegatorRuleOverridesLookaheadInDelegate()
           
 void testImportedTokenVocabIgnoredWithWarning()
           
 void testImportedTokenVocabWorksInRoot()
           
 void testInvalidImportMechanism()
           
 void testKeywordVSIDGivesNoWarning()
           
 void testLexerDelegatorInvokesDelegateRule()
           
 void testLexerDelegatorRuleOverridesDelegate()
           
 void testLexerDelegatorRuleOverridesDelegateLeavingNoRules()
           
 void testRulesVisibleThroughMultilevelImport()
           
 void testSameNameTwoStrings()
           
 void testSameStringTwoNames()
           
 void testSyntacticPredicateRulesAreNotInherited()
           
 void testSyntaxErrorsInImportsNotThrownOut()
           
 void testSyntaxErrorsInImportsNotThrownOut2()
           
 void testWarningForUndefinedToken()
           
 void testWildcardStillWorks()
           
 
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

TestCompositeGrammars

public TestCompositeGrammars()
Method Detail

testWildcardStillWorks

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

testDelegatorInvokesDelegateRule

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

testDelegatorInvokesDelegateRuleWithArgs

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

testDelegatorInvokesDelegateRuleWithReturnStruct

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

testDelegatorAccessesDelegateMembers

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

testDelegatorInvokesFirstVersionOfDelegateRule

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

testDelegatesSeeSameTokenType

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

testDelegatesSeeSameTokenType2

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

testCombinedImportsCombined

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

testSameStringTwoNames

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

testSameNameTwoStrings

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

testImportedTokenVocabIgnoredWithWarning

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

testImportedTokenVocabWorksInRoot

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

testSyntaxErrorsInImportsNotThrownOut

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

testSyntaxErrorsInImportsNotThrownOut2

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

testDelegatorRuleOverridesDelegate

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

testDelegatorRuleOverridesLookaheadInDelegate

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

testLexerDelegatorInvokesDelegateRule

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

testLexerDelegatorRuleOverridesDelegate

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

testLexerDelegatorRuleOverridesDelegateLeavingNoRules

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

testInvalidImportMechanism

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

testSyntacticPredicateRulesAreNotInherited

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

testKeywordVSIDGivesNoWarning

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

testWarningForUndefinedToken

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

test3LevelImport

public void test3LevelImport()
                      throws java.lang.Exception
Make sure that M can import S that imports T.

Throws:
java.lang.Exception

testBigTreeOfImports

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

testRulesVisibleThroughMultilevelImport

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