org.ujac.util.template.test
Class ProcedureTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.ujac.util.template.test.BaseTemplateTest
              extended by org.ujac.util.template.test.ProcedureTest
All Implemented Interfaces:
junit.framework.Test

public class ProcedureTest
extends BaseTemplateTest

Name: TemplateTest
Description: A class for statement expression tests.

Author:
lauerc

Nested Class Summary
static class ProcedureTest.TreeNode
          A class for tree nodes
 
Field Summary
 
Fields inherited from class org.ujac.util.template.test.BaseTemplateTest
ctx, interpreter
 
Constructor Summary
ProcedureTest()
           
 
Method Summary
protected  void setUp()
           
 void testProcedures()
          Tests statements executing procedures.
 void testRecursion()
          Tests statements executing recursive procedures.
 void testRecursionGlobal()
          Tests statements executing recursive procedures.
 
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

ProcedureTest

public ProcedureTest()
Method Detail

setUp

protected void setUp()
              throws Exception
Overrides:
setUp in class BaseTemplateTest
Throws:
Exception
See Also:
TestCase.setUp()

testProcedures

public void testProcedures()
                    throws TemplateException
Tests statements executing procedures.

Throws:
TemplateException - In case the template execution failed.

testRecursion

public void testRecursion()
                   throws TemplateException
Tests statements executing recursive procedures.

Throws:
TemplateException - In case the template execution failed.

testRecursionGlobal

public void testRecursionGlobal()
                         throws TemplateException
Tests statements executing recursive procedures.

Throws:
TemplateException - In case the template execution failed.


Copyright © 2003-2004 UJAC.org. All Rights Reserved.