org.apache.xmlrpc.test
Class DynamicProxyTest

java.lang.Object
  extended by TestCase
      extended by org.apache.xmlrpc.test.XmlRpcTestCase
          extended by org.apache.xmlrpc.test.DynamicProxyTest

public class DynamicProxyTest
extends XmlRpcTestCase

Test case for the ClientFactory.


Nested Class Summary
static interface DynamicProxyTest.Adder
          An interface, which is being implemented by the server.
static class DynamicProxyTest.AdderImpl
          Implementation of DynamicProxyTest.Adder, which is used by the server.
 
Field Summary
 
Fields inherited from class org.apache.xmlrpc.test.XmlRpcTestCase
providers
 
Constructor Summary
DynamicProxyTest()
           
 
Method Summary
private  org.apache.xmlrpc.client.util.ClientFactory getClientFactory(ClientProvider pProvider)
           
private  org.apache.xmlrpc.client.util.ClientFactory getExClientFactory(ClientProvider pProvider)
           
protected  org.apache.xmlrpc.server.XmlRpcHandlerMapping getHandlerMapping()
           
 void testAdderCall()
          Tests calling the DynamicProxyTest.Adder.add(int,int) method by using an object, which has been created by the ClientFactory.
private  void testAdderCall(ClientProvider pProvider)
           
 void testParseCall()
          Tests trapping a SAXException.
private  void testParseCall(ClientProvider pProvider)
           
 void testVoidMethod()
          Tests invoking a "void" method.
private  void testVoidMethod(ClientProvider pProvider)
           
 
Methods inherited from class org.apache.xmlrpc.test.XmlRpcTestCase
getConfig, getExConfig, getHandlerMapping, getTypeConverterFactory, initProviders, setUp, tearDown, writeRequest
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DynamicProxyTest

public DynamicProxyTest()
Method Detail

getHandlerMapping

protected org.apache.xmlrpc.server.XmlRpcHandlerMapping getHandlerMapping()
                                                                   throws java.io.IOException,
                                                                          org.apache.xmlrpc.XmlRpcException
Specified by:
getHandlerMapping in class XmlRpcTestCase
Throws:
java.io.IOException
org.apache.xmlrpc.XmlRpcException

getClientFactory

private org.apache.xmlrpc.client.util.ClientFactory getClientFactory(ClientProvider pProvider)
                                                              throws java.lang.Exception
Throws:
java.lang.Exception

getExClientFactory

private org.apache.xmlrpc.client.util.ClientFactory getExClientFactory(ClientProvider pProvider)
                                                                throws java.lang.Exception
Throws:
java.lang.Exception

testAdderCall

public void testAdderCall()
                   throws java.lang.Exception
Tests calling the DynamicProxyTest.Adder.add(int,int) method by using an object, which has been created by the ClientFactory.

Throws:
java.lang.Exception

testAdderCall

private void testAdderCall(ClientProvider pProvider)
                    throws java.lang.Exception
Throws:
java.lang.Exception

testParseCall

public void testParseCall()
                   throws java.lang.Exception
Tests trapping a SAXException.

Throws:
java.lang.Exception

testParseCall

private void testParseCall(ClientProvider pProvider)
                    throws java.lang.Exception
Throws:
java.lang.Exception

testVoidMethod

public void testVoidMethod()
                    throws java.lang.Exception
Tests invoking a "void" method.

Throws:
java.lang.Exception

testVoidMethod

private void testVoidMethod(ClientProvider pProvider)
                     throws java.lang.Exception
Throws:
java.lang.Exception