org.apache.velocity.test

Class ParserTestCase

public class ParserTestCase extends TestCase

More specific parser tests where just templating isn't enough.

Version: $Id: ParserTestCase.java,v 1.1.4.1 2004/03/03 23:23:04 geirm Exp $

Author: Geir Magnusson Jr.

Constructor Summary
ParserTestCase(String testName)
Method Summary
static Testsuite()
voidtestArgs()
Test to see if don't tolerage passing word tokens in anything but the 0th arg to #macro() and the 1th arg to foreach()
voidtestEquals()
Test to make sure that using '=' in #if() throws a PEE
voidtestMacro()
Test to see if we force the first arg to #macro() to be a word

Constructor Detail

ParserTestCase

public ParserTestCase(String testName)

Method Detail

suite

public static Test suite()

testArgs

public void testArgs()
Test to see if don't tolerage passing word tokens in anything but the 0th arg to #macro() and the 1th arg to foreach()

testEquals

public void testEquals()
Test to make sure that using '=' in #if() throws a PEE

testMacro

public void testMacro()
Test to see if we force the first arg to #macro() to be a word
Copyright B) 2002 Apache Software Foundation. All Rights Reserved.