org.apache.xmlrpc.test
Class SerializerTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.apache.xmlrpc.test.SerializerTest
All Implemented Interfaces:
junit.framework.Test

public class SerializerTest
extends junit.framework.TestCase

A test case for the various serializers.


Constructor Summary
SerializerTest()
          Creates a new instance.
 
Method Summary
protected  org.apache.xmlrpc.client.XmlRpcClientConfigImpl getConfig()
           
protected  org.apache.xmlrpc.common.XmlRpcStreamRequestConfig getExConfig()
           
 void testByteArrayParam()
          Test serialization of a byte array.
 void testByteParam()
          Test serialization of a byte parameter.
 void testCalendarParam()
          Tests serialization of a calendar instance.
 void testIntegerKeyMap()
          Test for XMLRPC-127: Is it possible to transmit a map with integers as the keys?
 void testIntParam()
          Test serialization of an integer parameter.
 void testMapParam()
          Test serialization of a map.
protected  java.lang.String writeRequest(org.apache.xmlrpc.common.XmlRpcStreamRequestConfig pConfig, org.apache.xmlrpc.XmlRpcRequest pRequest)
           
 
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

SerializerTest

public SerializerTest()
Creates a new instance.

Method Detail

getConfig

protected org.apache.xmlrpc.client.XmlRpcClientConfigImpl getConfig()

getExConfig

protected org.apache.xmlrpc.common.XmlRpcStreamRequestConfig getExConfig()

writeRequest

protected java.lang.String writeRequest(org.apache.xmlrpc.common.XmlRpcStreamRequestConfig pConfig,
                                        org.apache.xmlrpc.XmlRpcRequest pRequest)
                                 throws org.xml.sax.SAXException
Throws:
org.xml.sax.SAXException

testByteParam

public void testByteParam()
                   throws java.lang.Exception
Test serialization of a byte parameter.

Throws:
java.lang.Exception - The test failed.

testIntParam

public void testIntParam()
                  throws java.lang.Exception
Test serialization of an integer parameter.

Throws:
java.lang.Exception - The test failed.

testByteArrayParam

public void testByteArrayParam()
                        throws java.lang.Exception
Test serialization of a byte array.

Throws:
java.lang.Exception - The test failed.

testMapParam

public void testMapParam()
                  throws java.lang.Exception
Test serialization of a map.

Throws:
java.lang.Exception - The test failed.

testCalendarParam

public void testCalendarParam()
                       throws java.lang.Exception
Tests serialization of a calendar instance.

Throws:
java.lang.Exception

testIntegerKeyMap

public void testIntegerKeyMap()
                       throws java.lang.Exception
Test for XMLRPC-127: Is it possible to transmit a map with integers as the keys?

Throws:
java.lang.Exception


Copyright © 2001-2008 The Apache Software Foundation. All Rights Reserved.