org.apache.velocity.test

Class TemplateTestSuite

Implemented Interfaces:
TemplateTestBase

public class TemplateTestSuite
extends TestSuite
implements TemplateTestBase

Test suite for Templates.
Version:
$Id: TemplateTestSuite.java,v 1.6.8.1 2004/03/03 23:23:04 geirm Exp $
Authors:
Daniel Rall
Jason van Zyl
Geir Magnusson Jr.
Jon S. Stevens

Field Summary

private Properties
testProperties

Fields inherited from interface org.apache.velocity.test.TemplateTestBase

CMP_FILE_EXT, COMPARE_DIR, FILE_RESOURCE_LOADER_PATH, RESULT_DIR, RESULT_FILE_EXT, TEST_CASE_PROPERTIES, TMPL_FILE_EXT

Constructor Summary

TemplateTestSuite()
Creates an instace of the Apache Velocity test suite.

Method Summary

private void
addTemplateTestCases()
Adds the template test cases to run to this test suite.
private static String
getTemplateTestKey(int nbr)
Macro which returns the properties file key for the specified template test number.

Field Details

testProperties

private Properties testProperties

Constructor Details

TemplateTestSuite

public TemplateTestSuite()
Creates an instace of the Apache Velocity test suite.

Method Details

addTemplateTestCases

private void addTemplateTestCases()
Adds the template test cases to run to this test suite. Template test cases are listed in the TEST_CASE_PROPERTIES file.

getTemplateTestKey

private static final String getTemplateTestKey(int nbr)
Macro which returns the properties file key for the specified template test number.
Parameters:
nbr - The template test number to return a property key for.
Returns:
The property key.

Copyright B) 2002 Apache Software Foundation. All Rights Reserved.