com.arsdigita.acs.test
Class TemplateTest

java.lang.Object
  |
  +--junit.framework.Assert
        |
        +--junit.framework.TestCase
              |
              +--com.arsdigita.acs.test.TemplateTest
All Implemented Interfaces:
junit.framework.Test

public class TemplateTest
extends junit.framework.TestCase

Test suite for the template translator. To run from the command line, try java junit.textui.TestRunner -Dserver.url=http://hostname.com:port com.arsdigita.acs.test.TemplateTest

Since:
ACS4.0

Field Summary
static java.lang.String cvsId
           
 
Constructor Summary
TemplateTest(java.lang.String name)
           
 
Method Summary
 void setUp()
          Sets up the fixture to run the test case.
 void tearDown()
          Release any resources needed for thet testcase, such as network connections, file descriptors, etc.
 void testBind()
          Tests the simple one-row, bind variables case makes a Selection out of a Map (column_array option to db_1row)
 void testGrid()
          Tests grid tag
 void testGroup()
          Tests group tag
 void testHelloWorld()
          Tests the hello-world case
 void testIf()
          Tests some conditional expressions with the if tag
 void testInclude()
          Tests basic include tag usage
 void testList()
          Tests list tag, passing a Vector directly, with the factorial example
 void testMasterSlave()
          Tests master tag with supplied and default master templates
 void testMultiple()
          Tests multiple tag
 void testRecursiveInclude()
          Tests recursive inclusion (fib)
 void testSkins()
          Tests ad_return_template with different templates supplied as parameters
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, name, run, run, runBare, runTest, toString
 
Methods inherited from class junit.framework.Assert
assert, assert, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertNotNull, assertNotNull, assertNull, assertNull, assertSame, assertSame, fail, fail
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

cvsId

public static final java.lang.String cvsId
Constructor Detail

TemplateTest

public TemplateTest(java.lang.String name)
Method Detail

setUp

public void setUp()
Sets up the fixture to run the test case. Initialize variables, open network connections, file descriptors, as necessary here.
Overrides:
setUp in class junit.framework.TestCase

tearDown

public void tearDown()
Release any resources needed for thet testcase, such as network connections, file descriptors, etc.
Overrides:
tearDown in class junit.framework.TestCase

testHelloWorld

public void testHelloWorld()
Tests the hello-world case

testBind

public void testBind()
Tests the simple one-row, bind variables case makes a Selection out of a Map (column_array option to db_1row)

testIf

public void testIf()
Tests some conditional expressions with the if tag

testInclude

public void testInclude()
Tests basic include tag usage

testMasterSlave

public void testMasterSlave()
Tests master tag with supplied and default master templates

testSkins

public void testSkins()
Tests ad_return_template with different templates supplied as parameters

testRecursiveInclude

public void testRecursiveInclude()
Tests recursive inclusion (fib)

testMultiple

public void testMultiple()
Tests multiple tag

testGroup

public void testGroup()
Tests group tag

testGrid

public void testGrid()
Tests grid tag

testList

public void testList()
Tests list tag, passing a Vector directly, with the factorial example