freemarker.testcase
Class TestExtendedHash

java.lang.Object
  |
  +--junit.framework.Assert
        |
        +--junit.framework.TestCase
              |
              +--freemarker.testcase.AbstractTestCase
                    |
                    +--freemarker.testcase.TestExtendedHash
All Implemented Interfaces:
junit.framework.Test

public final class TestExtendedHash
extends AbstractTestCase

Test class for testing the ExtendedHash template model. Runs through the special hash keys to see what comes out the other end.

This test could be problematic, since it assumes a particular ordering for keysets and values from a hash, which are ultimately dependant on the implementation of the underlying JVM class library.

Version:
$Id: TestExtendedHash.java,v 1.13 2003/11/28 01:17:06 run2000 Exp $

Fields inherited from class freemarker.testcase.AbstractTestCase
m_aFilename, m_aReferenceText, m_aTemplateText
 
Constructor Summary
TestExtendedHash(java.lang.String aTestname)
          Constructor that passes the name of the test up to the JUnit constructor.
 
Method Summary
static void main(java.lang.String[] argc)
          Bootstrap for the self-test code.
 void runTest()
          Performs the test.
 void setUp()
          Set up the test case prior to running.
 
Methods inherited from class freemarker.testcase.AbstractTestCase
getReferenceText, getTemplateText, getTestcasePath, getTextFromFile, isTextIdentical, setUpFiles, showTestResults, writeText
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, 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

TestExtendedHash

public TestExtendedHash(java.lang.String aTestname)
Constructor that passes the name of the test up to the JUnit constructor.
Parameters:
aTestname - the name of the test
Method Detail

setUp

public void setUp()
Set up the test case prior to running.
Overrides:
setUp in class junit.framework.TestCase

runTest

public void runTest()
             throws java.io.IOException
Performs the test. A fail result will generate information about the failure and pass it up to JUnit.
Overrides:
runTest in class junit.framework.TestCase

main

public static void main(java.lang.String[] argc)
                 throws java.lang.Exception
Bootstrap for the self-test code.