org.antlr.test
Class TestTemplates

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

public class TestTemplates
extends BaseTest

Test templates in actions; %... shorthands


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
TestTemplates()
           
 
Method Summary
protected  void checkError(ErrorQueue equeue, GrammarSemanticsMessage expectedMessage)
           
 void testCannotHaveSpaceAfterDot()
           
 void testCannotHaveSpaceBeforeDot()
           
 void testIndirectTemplateConstructor()
           
 void testSetAttr()
           
 void testSetAttrOfExpr()
           
 void testSetAttrOfExprInMembers()
           
 void testStringConstructor()
           
 void testTemplateConstructor()
           
 void testTemplateConstructorNoArgs()
           
 
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

TestTemplates

public TestTemplates()
Method Detail

testTemplateConstructor

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

testTemplateConstructorNoArgs

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

testIndirectTemplateConstructor

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

testStringConstructor

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

testSetAttr

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

testSetAttrOfExpr

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

testSetAttrOfExprInMembers

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

testCannotHaveSpaceBeforeDot

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

testCannotHaveSpaceAfterDot

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

checkError

protected void checkError(ErrorQueue equeue,
                          GrammarSemanticsMessage expectedMessage)
                   throws java.lang.Exception
Throws:
java.lang.Exception