ca.quine.jcommons.marshaller.test
Class MarshallerTest

java.lang.Object
  |
  +--junit.framework.Assert
        |
        +--junit.framework.TestCase
              |
              +--ca.quine.jcommons.marshaller.test.MarshallerTest
All Implemented Interfaces:
Test

public class MarshallerTest
extends TestCase


Constructor Summary
MarshallerTest()
           
 
Method Summary
 void test2DBooleanArray()
           
 void test2DCharArray()
           
 void test2DIntArray()
           
 void test2DShortArray()
           
 void test3DCharArray()
           
 void test3DIntArray()
           
 void test4DIntArray()
           
 void testArrayList()
          Ensures the ArrayList marshaller can request default marshalling of each object in the ArrayList (in this case, they are Strings).
 void testCharArray()
           
 void testFqcn()
          Test the fqcn method on Marshaller.
 void testHashMap()
          Tests that a HashMap is correctly marshalled.
 void testHashMapOfClasses()
           
 void testIntArray()
           
 void testIntegerVsIntType()
          Ensures that an Integer is marshalled with the type "Integer", and an int is marshalled with the type "int".
 void testLinkedList()
          Mostly this test ensures that an infinite loop of some kind doesn't occur, since many of the Objects held by a LinkedList point to internal structures held by it.
 void testObjectArray()
           
 void testString()
          Test String marshalling.
 void testVector()
           
 
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

MarshallerTest

public MarshallerTest()
Method Detail

testFqcn

public void testFqcn()
              throws Exception
Test the fqcn method on Marshaller.

Throws:
Exception

testString

public void testString()
                throws Exception
Test String marshalling.

Throws:
Exception

testIntegerVsIntType

public void testIntegerVsIntType()
                          throws Exception
Ensures that an Integer is marshalled with the type "Integer", and an int is marshalled with the type "int".

Throws:
Exception

testArrayList

public void testArrayList()
                   throws Exception
Ensures the ArrayList marshaller can request default marshalling of each object in the ArrayList (in this case, they are Strings).

Throws:
Exception

testLinkedList

public void testLinkedList()
                    throws Exception
Mostly this test ensures that an infinite loop of some kind doesn't occur, since many of the Objects held by a LinkedList point to internal structures held by it.

Throws:
Exception

testHashMap

public void testHashMap()
                 throws Exception
Tests that a HashMap is correctly marshalled.

Throws:
Exception

testHashMapOfClasses

public void testHashMapOfClasses()
                          throws Exception
Exception

testCharArray

public void testCharArray()
                   throws Exception
Exception

test2DCharArray

public void test2DCharArray()
                     throws Exception
Exception

test3DCharArray

public void test3DCharArray()
                     throws Exception
Exception

testIntArray

public void testIntArray()
                  throws Exception
Exception

test2DIntArray

public void test2DIntArray()
                    throws Exception
Exception

test3DIntArray

public void test3DIntArray()
                    throws Exception
Exception

test4DIntArray

public void test4DIntArray()
                    throws Exception
Exception

test2DShortArray

public void test2DShortArray()
                      throws Exception
Exception

test2DBooleanArray

public void test2DBooleanArray()
                        throws Exception
Exception

testObjectArray

public void testObjectArray()
                     throws Exception
Exception

testVector

public void testVector()
                throws Exception
Exception