Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.apache.xmlrpc
Class XmlRpcTransportTest  view XmlRpcTransportTest download XmlRpcTransportTest.java

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended byorg.apache.xmlrpc.LocalServerRpcTest
              extended byorg.apache.xmlrpc.XmlRpcTransportTest
All Implemented Interfaces:
junit.framework.Test
Direct Known Subclasses:
CommonsXmlRpcTransportTest, LiteXmlRpcTransportTest

public abstract class XmlRpcTransportTest
extends LocalServerRpcTest

Abstract Test class to be extended by the tests for each Transport. Guarantees that transports implement a base contract expected by the XmlRpcClient classes

Version:
$Id: XmlRpcTransportTest.java,v 1.4 2005/04/22 10:26:17 hgomez Exp $

Nested Class Summary
 
Nested classes inherited from class org.apache.xmlrpc.LocalServerRpcTest
LocalServerRpcTest.TestHandler
 
Field Summary
 
Fields inherited from class org.apache.xmlrpc.LocalServerRpcTest
HANDLER_NAME, REQUEST_PARAM_VALUE, REQUEST_PARAM_XML, RPC_REQUEST, SERVER_PORT, webServer
 
Fields inherited from class junit.framework.TestCase
 
Constructor Summary
XmlRpcTransportTest(java.lang.String testName)
          Constructor
 
Method Summary
private  java.net.URL buildURL(java.lang.String hostname, int port)
           
protected  boolean equalsInputStream(java.io.InputStream is1, java.io.InputStream is2)
           
protected abstract  XmlRpcTransport getTransport(java.net.URL url)
          This should return a new instance of the XmlRpcTransport being tested.
 void testSendXmlRpc()
          This test is to enforce that every alternate implementation of XmlRpcTransport provides a minimum of the same functionality as
 
Methods inherited from class org.apache.xmlrpc.LocalServerRpcTest
setUpWebServer, startWebServer, stopWebServer
 
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

XmlRpcTransportTest

public XmlRpcTransportTest(java.lang.String testName)
Constructor

Method Detail

getTransport

protected abstract XmlRpcTransport getTransport(java.net.URL url)
This should return a new instance of the XmlRpcTransport being tested.


testSendXmlRpc

public void testSendXmlRpc()
This test is to enforce that every alternate implementation of XmlRpcTransport provides a minimum of the same functionality as


buildURL

private java.net.URL buildURL(java.lang.String hostname,
                              int port)
                       throws java.net.MalformedURLException

equalsInputStream

protected boolean equalsInputStream(java.io.InputStream is1,
                                    java.io.InputStream is2)
                             throws java.io.IOException