freemarker.testcase
Class TestSerialModels

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by freemarker.testcase.TestSerialModels
All Implemented Interfaces:
junit.framework.Test

public final class TestSerialModels
extends junit.framework.TestCase

A simple test case for serializing and deserializing template models. In addition, it performs tests of equality using the equals and hashCode methods.

Version:
$Id: TestSerialModels.java 1124 2005-10-04 10:48:45Z run2000 $
Author:
Nicholas Cull

Constructor Summary
TestSerialModels(java.lang.String aTestname)
          Constructor that passes the name of the test up to the JUnit constructor.
 
Method Summary
protected  void runTest()
          Performs the serialization test.
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, setName, setUp, 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

TestSerialModels

public TestSerialModels(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

runTest

protected void runTest()
                throws java.lang.Exception
Performs the serialization test.

Overrides:
runTest in class junit.framework.TestCase
Throws:
java.lang.Exception