freemarker.testcase
Class TestBeanModels2

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

public final class TestBeanModels2
extends junit.framework.TestCase

A simple test case for testing most aspects of the freemarker.ext.beans package.

Version:
$Id: TestBeanModels2.java 1185 2005-10-13 12:24:14Z run2000 $
Author:
Nicholas Cull

Constructor Summary
TestBeanModels2(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 testArrayModel()
          Performs the bean model test of the Array model.
 void testCollectionModel()
          Performs the bean model test of the Collection model.
 void testContainerModels()
          Performs the bean model test of container models.
 void testEnumModel()
           
 void testIndexedProperties()
           
 void testListModel()
          Performs the bean model test of the List model.
 void testMapModel()
          Performs the bean model test of the Map model.
 void testMethodCalls()
          Performs tests on coersion of Simple and Fast models into forms usable by the freemarker.ext.beans package.
 void testScalarModel()
          Performs the bean model test of the Scalar model.
 void testStaticModel()
          Performs the bean model test of the Scalar model.
 
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

TestBeanModels2

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

testListModel

public void testListModel()
                   throws java.lang.Exception
Performs the bean model test of the List model.

Throws:
java.lang.Exception

testCollectionModel

public void testCollectionModel()
                         throws java.lang.Exception
Performs the bean model test of the Collection model.

Throws:
java.lang.Exception

testArrayModel

public void testArrayModel()
                    throws java.lang.Exception
Performs the bean model test of the Array model.

Throws:
java.lang.Exception

testMapModel

public void testMapModel()
                  throws java.lang.Exception
Performs the bean model test of the Map model.

Throws:
java.lang.Exception

testScalarModel

public void testScalarModel()
                     throws java.lang.Exception
Performs the bean model test of the Scalar model.

Throws:
java.lang.Exception

testContainerModels

public void testContainerModels()
                         throws java.lang.Exception
Performs the bean model test of container models.

Throws:
java.lang.Exception

testIndexedProperties

public void testIndexedProperties()
                           throws java.lang.Exception
Throws:
java.lang.Exception

testStaticModel

public void testStaticModel()
                     throws java.lang.Exception
Performs the bean model test of the Scalar model.

Throws:
java.lang.Exception

testEnumModel

public void testEnumModel()
                   throws java.lang.Exception
Throws:
java.lang.Exception

testMethodCalls

public void testMethodCalls()
                     throws java.lang.Exception
Performs tests on coersion of Simple and Fast models into forms usable by the freemarker.ext.beans package.

Throws:
java.lang.Exception

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.

Throws:
java.lang.Exception