org.apache.xmlrpc.test
Class ClientIpTest

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

public class ClientIpTest
extends XmlRpcTestCase

Test case for reading the clients IP address.


Nested Class Summary
static class ClientIpTest.ClientInfo
           
static class ClientIpTest.ClientInfoServlet
           
 
Field Summary
 
Fields inherited from class org.apache.xmlrpc.test.XmlRpcTestCase
providers
 
Constructor Summary
ClientIpTest()
           
 
Method Summary
protected  org.apache.xmlrpc.server.XmlRpcHandlerMapping getHandlerMapping()
           
protected  ClientProvider[] initProviders(org.apache.xmlrpc.server.XmlRpcHandlerMapping pMapping)
           
 void testClientIpAddress()
          Test, whether we can invoke a method, returning a byte.
 
Methods inherited from class org.apache.xmlrpc.test.XmlRpcTestCase
getConfig, getExConfig, getHandlerMapping, getTypeConverterFactory, setUp, tearDown
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, 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

ClientIpTest

public ClientIpTest()
Method Detail

initProviders

protected ClientProvider[] initProviders(org.apache.xmlrpc.server.XmlRpcHandlerMapping pMapping)
                                  throws javax.servlet.ServletException,
                                         java.io.IOException
Overrides:
initProviders in class XmlRpcTestCase
Throws:
javax.servlet.ServletException
java.io.IOException

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

testClientIpAddress

public void testClientIpAddress()
                         throws java.lang.Exception
Test, whether we can invoke a method, returning a byte.

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


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