freemarker.testcase
Class TestHashModel

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

public final class TestHashModel
extends junit.framework.TestCase

A simple test case for performing unit tests on SimpleHash. These complement the tests performed by the other hash tests by improving code coverage for this model in particular.

Version:
$Id: TestHashModel.java,v 1.2 2003/11/28 01:17:06 run2000 Exp $
Author:
Nicholas Cull

Constructor Summary
TestHashModel(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.
static junit.framework.Test suite()
          Return a suite of all the tests in this class by reflection.
 void testAddRemove()
          Performs a SimpleHash test.
 void testSimpleHash()
          Performs a SimpleHash test.
 void testSimpleHash2()
          Performs a SimpleHash test.
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, 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

TestHashModel

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

testSimpleHash

public void testSimpleHash()
                    throws java.lang.Exception
Performs a SimpleHash test.

testSimpleHash2

public void testSimpleHash2()
                     throws java.lang.Exception
Performs a SimpleHash test.

testAddRemove

public void testAddRemove()
                   throws java.lang.Exception
Performs a SimpleHash test.

suite

public static junit.framework.Test suite()
Return a suite of all the tests in this class by reflection.
Returns:
a TestSuite of all the methods starting with the word "test"

main

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