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 Test
suite()
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()
void
testEquals()
Test to make sure that using '=' in #if() throws a PEE
void
testMacro()
Test to see if we force the first arg to #macro() to be a word

Constructor Details

ParserTestCase

public ParserTestCase(String testName)

Method Details

suite

public static Test suite()


testArgs

public void testArgs()
            throws Exception
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()
            throws Exception
Test to make sure that using '=' in #if() throws a PEE


testMacro

public void testMacro()
            throws Exception
Test to see if we force the first arg to #macro() to be a word


Copyright B) 2002 Apache Software Foundation. All Rights Reserved.