ParserTestCase (Velocity 1.4 API)
Keywords: org.apache.velocity.test.ParserTestCase class

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.velocity.test
Class ParserTestCase

    java.lang.Object
      junit.framework.Assert
          junit.framework.TestCase
              org.apache.velocity.test.ParserTestCase

All Implemented Interfaces:
  junit.framework.Test

public class ParserTestCase
extends junit.framework.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.

Field Summary

Fields inherited from class junit.framework.TestCase
``

Constructor Summary
`ParserTestCase(java.lang.String testName)`

Method Summary
`static junit.framework.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` | `testEscape()` Test to make sure that using '=' in #if() throws a PEE
`void` | `testIgnore()`
`void` | `testMacro()` Test to see if we force the first arg to #macro() to be a word

Methods inherited from class junit.framework.TestCase
`countTestCases, createResult, getName, name, run, run, runBare, runTest, setName, setUp, tearDown, toString`

Methods inherited from class junit.framework.Assert
`assert, assert, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertNotNull, assertNotNull, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

Constructor Detail

### ParserTestCase

    public ParserTestCase(java.lang.String testName)

Method Detail

### suite

    public static junit.framework.Test suite()

### testEquals

    public void testEquals()
                    throws java.lang.Exception

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

  Throws:
    `java.lang.Exception`

### testEscape

    public void testEscape()
                    throws java.lang.Exception

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

  Throws:
    `java.lang.Exception`

### testIgnore

    public void testIgnore()
                    throws java.lang.Exception

  Throws:
    `java.lang.Exception`

### testMacro

    public void testMacro()
                   throws java.lang.Exception

  Test to see if we force the first arg to #macro() to be a word

  Throws:
    `java.lang.Exception`

### testArgs

    public void testArgs()
                  throws java.lang.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()

  Throws:
    `java.lang.Exception`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2002 Apache Software Foundation. All Rights Reserved.