freemarker.testcase
Class TestListModel2

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

public final class TestListModel2
extends junit.framework.TestCase

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

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

Constructor Summary
TestListModel2(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 testListAdd()
          Performs an ExtendedList test.
 void testListCopy1()
          Performs an ExtendedList test.
 void testListCopy2()
          Performs an ExtendedList test.
 void testShelfLife()
          Performs a test of shelf life in ExtendedList.
 void testSimpleArrayList()
          Performs an ExtendedList test.
 void testSimpleCollectionList()
          Performs an ExtendedList 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

TestListModel2

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

testSimpleArrayList

public void testSimpleArrayList()
                         throws java.lang.Exception
Performs an ExtendedList test.

testSimpleCollectionList

public void testSimpleCollectionList()
                              throws java.lang.Exception
Performs an ExtendedList test.

testListCopy1

public void testListCopy1()
                   throws java.lang.Exception
Performs an ExtendedList test.

testListCopy2

public void testListCopy2()
                   throws java.lang.Exception
Performs an ExtendedList test.

testListAdd

public void testListAdd()
                 throws java.lang.Exception
Performs an ExtendedList test.

testShelfLife

public void testShelfLife()
                   throws java.lang.Exception
Performs a test of shelf life in ExtendedList.

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.