org.apache.xmlrpc.test
Class AuthenticationTest

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

public class AuthenticationTest
extends XmlRpcTestCase

Test case for supported authentication variants.


Nested Class Summary
static interface AuthenticationTest.Adder
          An interface, which is being implemented by the server.
static class AuthenticationTest.AdderImpl
          Implementation of DynamicProxyTest.Adder, which is used by the server.
 
Field Summary
private static java.lang.String PASSWORD
           
private static java.lang.String USER_NAME
           
 
Fields inherited from class org.apache.xmlrpc.test.XmlRpcTestCase
providers
 
Constructor Summary
AuthenticationTest()
           
 
Method Summary
private  org.apache.xmlrpc.client.util.ClientFactory getClientFactory(ClientProvider pProvider)
           
protected  org.apache.xmlrpc.client.XmlRpcClientConfigImpl getConfig(ClientProvider pProvider)
           
protected  org.apache.xmlrpc.server.XmlRpcHandlerMapping getHandlerMapping()
           
 void testAdderCall()
          Tests calling the AuthenticationTest.Adder.add(int,int) method by using an object, which has been created by the ClientFactory.
private  void testAdderCall(ClientProvider pProvider)
           
 
Methods inherited from class org.apache.xmlrpc.test.XmlRpcTestCase
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
 

Field Detail

PASSWORD

private static final java.lang.String PASSWORD
See Also:
Constant Field Values

USER_NAME

private static final java.lang.String USER_NAME
See Also:
Constant Field Values
Constructor Detail

AuthenticationTest

public AuthenticationTest()
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

getConfig

protected org.apache.xmlrpc.client.XmlRpcClientConfigImpl getConfig(ClientProvider pProvider)
                                                             throws java.lang.Exception
Overrides:
getConfig in class XmlRpcTestCase
Throws:
java.lang.Exception

getClientFactory

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

testAdderCall

public void testAdderCall()
                   throws java.lang.Exception
Tests calling the AuthenticationTest.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