org.ujac.util.template.test
Class TemplateTest

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.TemplateTest
All Implemented Interfaces:
junit.framework.Test

public class TemplateTest
extends BaseTemplateTest

Name: TemplateTest
Description: Defines main template interpreter test cases.

Author:
lauerc

Field Summary
 
Fields inherited from class org.ujac.util.template.test.BaseTemplateTest
ctx, interpreter
 
Constructor Summary
TemplateTest()
           
 
Method Summary
protected  void setUp()
           
 void testAssert()
          Tests the _assert_ statement.
 void testDefine()
          Tests the _define_ statement.
 void testExtendedForeach()
          Extended tests for the execution of _foreach_ statements.
 void testForeach()
          Tests the execution of _foreach_ statements.
 void testIfElseifElseEndif()
          Tests the _if_ _elseif_ _else_ _endif_ statement.
 void testLog()
          Tests the _log_ statement.
 void testMapEntriesLoop()
          Extended tests for the execution of _foreach_ statements.
 void testUnderscores()
          Tests the execution of templates, containing underscores.
 
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

TemplateTest

public TemplateTest()
Method Detail

setUp

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

testUnderscores

public void testUnderscores()
                     throws TemplateException
Tests the execution of templates, containing underscores.

Throws:
TemplateException - In case the template execution failed.

testForeach

public void testForeach()
                 throws TemplateException
Tests the execution of _foreach_ statements.

Throws:
TemplateException - In case the template execution failed.

testExtendedForeach

public void testExtendedForeach()
                         throws TemplateException
Extended tests for the execution of _foreach_ statements.

Throws:
TemplateException - In case the template execution failed.

testMapEntriesLoop

public void testMapEntriesLoop()
                        throws TemplateException
Extended tests for the execution of _foreach_ statements.

Throws:
TemplateException - In case the template execution failed.

testIfElseifElseEndif

public void testIfElseifElseEndif()
                           throws TemplateException
Tests the _if_ _elseif_ _else_ _endif_ statement.

Throws:
TemplateException - In case the template execution failed.

testDefine

public void testDefine()
                throws TemplateException
Tests the _define_ statement.

Throws:
TemplateException - In case the template execution failed.

testLog

public void testLog()
             throws TemplateException
Tests the _log_ statement.

Throws:
TemplateException - In case the template execution failed.

testAssert

public void testAssert()
                throws TemplateException
Tests the _assert_ statement.

Throws:
TemplateException - In case the template execution failed.


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