org.apache.velocity.test
Class ForeachTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.apache.velocity.test.ForeachTest
All Implemented Interfaces:
junit.framework.Test

public class ForeachTest
extends junit.framework.TestCase

This class tests the Foreach loop.

Author:
Daniel Rall, Will Glass-Husain

Constructor Summary
ForeachTest(String name)
           
 
Method Summary
 void setUp()
           
 void testMaxNbrLoopsConstraint()
          Tests limiting of the number of loop iterations.
 void testMethodCall()
          Tests proper method execution during a Foreach loop with items of varying classes.
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ForeachTest

public ForeachTest(String name)
Method Detail

setUp

public void setUp()
           throws Exception
Overrides:
setUp in class junit.framework.TestCase
Throws:
Exception

testMaxNbrLoopsConstraint

public void testMaxNbrLoopsConstraint()
                               throws Exception
Tests limiting of the number of loop iterations.

Throws:
Exception

testMethodCall

public void testMethodCall()
                    throws Exception
Tests proper method execution during a Foreach loop with items of varying classes.

Throws:
Exception


Copyright © 2002 Apache Software Foundation. All Rights Reserved.