Package freemarker.testcase

Test cases for various aspects of the FM-Classic implementation.

See:
          Description

Class Summary
AbstractTestCase Abstract class used to implement test cases for FreeMarker.
CacheThread Thread for accessing the cache for a set period of time, then exiting.
CacheThread2 Thread for accessing the cache for a set period of time, then exiting.
CacheThread3 Thread for accessing the cache for a set period of time, then exiting.
CacheThread4 Thread for accessing the cache for a set period of time, then exiting.
CacheThread5 Thread for accessing the cache for a set period of time, then exiting.
DummyTestCase Dummy test case.
FreeMarkerTestSuite Test suite for FM-Classic.
HelloWorld Simple HelloWorld program, used by the TestExecModel test case.
TestBeanModels A simple test case for testing most aspects of the freemarker.ext.beans package.
TestBoolean Test class for testing boolean conditions.
TestCacheExpiry Tests expiry of items from the cache.
TestCacheThreaded Simple class (JUnit agnostic) to test cache implementation.
TestComment Test class for testing FM-Classic's <comment> tag.
TestComparisons Test class for performing tests on the numeric comparison operations in the freemarker.ext.misc package.
TestCompress Test class for testing FM-Classic's <compress> tag, and the replacement TemplateTransformModel classes.
TestException Test case for the situation where a template throws a TemplateModelException.
TestException2 Test case for the situation where a template throws a TemplateModelException.
TestException3 Test case for the situation where a template throws a TemplateModelException.
TestExecModel Test case to exercise the Execute implementation.
TestExtendedHash Test class for testing the ExtendedHash template model.
TestExtendedList Test class for testing the ExtendedList template model.
TestFreeMarkerTransform Test class for the <transform> tag, and in particular the FreeMarkerToHtml transformation class.
TestFunction Test class for testing FM-Classic's functions (also known as Macros under different template engines).
TestHashLiteral Test class for testing FM-Classic's hash literal syntax.
TestHashModel A simple test case for performing unit tests on SimpleHash.
TestHashModel2 A simple test case for performing unit tests on ExtendedHash.
TestIdentifier Test class for testing FM-Classic's identifier parsing.
TestInclude Test class for testing FM-Classic's <include> tag, and the two AbstractTemplate implementations that can be included from it.
TestInclude2 A second test class for testing FM-Classic's <include> tag.
TestIterator Test class for testing iterator models.
TestJavaTransform Test class for the <transform> FM-Classic tag, and in particular the JavaToHtml transformation class.
TestLastCharacter Test class for testing what happens when a FM-Classic instruction is the last instruction in a template.
TestListIterators Test class for testing FM-Classic's list iterators: <list ...
TestListLiteral Test class for testing FM-Classic's list literal syntax.
TestListModel A simple test case for performing unit tests on SimpleList.
TestListModel2 A simple test case for performing unit tests on ExtendedList.
TestLocalization Test class for testing LocalizedFileRetriever.
TestLog4jExceptionHandler Performs a simple test on the Log4jExceptionListener class to see whether Log4j works correctly with it.
TestMultiModels Test class for evaluating what FM-Classic does when presented with classes that implement more than one Template model.
TestNewlines1 Test class for testing FM-Classic's handling of newlines.
TestNewlines2 Test class for testing FM-Classic's handling of newlines.
TestNewlines3 Test class for testing FM-Classic's handling of newlines.
TestNoParse Test class for testing FM-Classic's <noparse> tag.
TestNumberLiteral Test class for testing FM-Classic's number literal syntax.
TestNumerics Test parsing and operator precedence rules for numerics in FM-Classic.
TestObjectModel Test class for testing FM-Classic's TemplateObjectModel.
TestPerl5Substitute Test class for testing the FM-Classic's extension for Perl 5 substitutions.
TestPrecedence Test class for testing operator precedence in FM-Classic.
TestSerialization Test class for testing FM-Classic's serialization of templates.
TestSerialModels A simple test case for serializing and deserializing template models.
TestStringNumber Test class for testing Strings and numbers, and the conversions between the two.
TestSwitchCase Test class for testing FM-Classic's <switch> tag.
TestTransform Test class for the <transform> FM-Classic tag.
TestTypes Test class for testing the type evaluation classes in the freemarker.ext.misc package.
TestVariables Test class for testing FM-Classic variable syntax, in particular, the chaining of variables using dot and dynamic-key-name.
 

Exception Summary
TestCaseException Exception thrown whenever a test case fails.
 

Package freemarker.testcase Description

Test cases for various aspects of the FM-Classic implementation. These use the JUnit testing framework to carry out and report on tests.

To run the tests:

Any errors will result in the text of the failed test case(s) appearing in your current working directory. From there it should be possible to diagnose the cause of the failure.