org.apache.xmlrpc.test
Class SerializerTest

java.lang.Object
  extended by TestCase
      extended by org.apache.xmlrpc.test.SerializerTest

public class SerializerTest
extends TestCase

A test case for the various serializers.


Field Summary
private  org.apache.xmlrpc.client.XmlRpcClient client
           
 
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 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

client

private final org.apache.xmlrpc.client.XmlRpcClient client
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