org.apache.xmlrpc.test
Class BaseTest

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.BaseTest
All Implemented Interfaces:
junit.framework.Test

public class BaseTest
extends XmlRpcTestCase

An abstract test case, to be implemented for the various transport classes.


Nested Class Summary
static class BaseTest.Remote
          The remote class being invoked by the test case.
 
Field Summary
 
Fields inherited from class org.apache.xmlrpc.test.XmlRpcTestCase
providers
 
Constructor Summary
BaseTest()
           
 
Method Summary
protected  org.apache.xmlrpc.server.XmlRpcHandlerMapping getHandlerMapping()
           
 void testByteArrayParam()
          Test, whether we can invoke a method, passing a byte array.
 void testByteArrayResult()
          Test, whether we can invoke a method, returning a byte array.
 void testByteParam()
          Test, whether we can invoke a method, passing a byte value.
 void testByteResult()
          Test, whether we can invoke a method, returning a byte.
 void testCalendarParam()
          Tests, whether we can invoke a method, passing an instance of Calendar as a parameter.
 void testCatchNPE()
          Tests, whether a NullPointerException, thrown by the server, can be trapped by the client.
 void testDateParam()
          Tests, whether we can invoke a method, passing an instance of Date as a parameter.
 void testDoubleParam()
          Test, whether we can invoke a method, passing a double value.
 void testDoubleResult()
          Test, whether we can invoke a method, returning a double value.
 void testFloatParam()
          Test, whether we can invoke a method, passing a float value.
 void testFloatResult()
          Test, whether we can invoke a method, returning a float value.
 void testIntParam()
          Test, whether we can invoke a method, passing an integer value.
 void testLongParam()
          Test, whether we can invoke a method, passing a long value.
 void testLongResult()
          Test, whether we can invoke a method, returning a long value.
 void testMapParam()
          Test, whether we can invoke a method, passing a map.
 void testMapResult()
          Test, whether we can invoke a method, returning a map.
 void testNodeParam()
          Test, whether we can invoke a method, passing a DOM node as parameter.
 void testNullableStringParam()
          Test, whether we can invoke a method, passing a string value or null.
 void testNullableStringResult()
          Test, whether we can invoke a method, returning a string value or null.
 void testObjectArrayParam()
          Test, whether we can invoke a method, passing an object array.
 void testObjectArrayResult()
          Test, whether we can invoke a method, returning an object array.
 void testSerializableParam()
          Test, whether we can invoke a method, passing an instance of Serializable as a parameter.
 void testShortParam()
          Test, whether we can invoke a method, passing a short value.
 void testShortResult()
          Test, whether we can invoke a method, returning a short value.
 void testStringParam()
          Test, whether we can invoke a method, passing a string value.
 
Methods inherited from class org.apache.xmlrpc.test.XmlRpcTestCase
getConfig, getExConfig, getHandlerMapping, getTypeConverterFactory, initProviders, 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

BaseTest

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

testByteParam

public void testByteParam()
                   throws java.lang.Exception
Test, whether we can invoke a method, passing a byte value.

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

testByteResult

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

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

testShortParam

public void testShortParam()
                    throws java.lang.Exception
Test, whether we can invoke a method, passing a short value.

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

testShortResult

public void testShortResult()
                     throws java.lang.Exception
Test, whether we can invoke a method, returning a short value.

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

testIntParam

public void testIntParam()
                  throws java.lang.Exception
Test, whether we can invoke a method, passing an integer value.

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

testLongParam

public void testLongParam()
                   throws java.lang.Exception
Test, whether we can invoke a method, passing a long value.

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

testLongResult

public void testLongResult()
                    throws java.lang.Exception
Test, whether we can invoke a method, returning a long value.

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

testStringParam

public void testStringParam()
                     throws java.lang.Exception
Test, whether we can invoke a method, passing a string value.

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

testNullableStringParam

public void testNullableStringParam()
                             throws java.lang.Exception
Test, whether we can invoke a method, passing a string value or null.

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

testNullableStringResult

public void testNullableStringResult()
                              throws java.lang.Exception
Test, whether we can invoke a method, returning a string value or null.

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

testFloatParam

public void testFloatParam()
                    throws java.lang.Exception
Test, whether we can invoke a method, passing a float value.

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

testFloatResult

public void testFloatResult()
                     throws java.lang.Exception
Test, whether we can invoke a method, returning a float value.

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

testDoubleParam

public void testDoubleParam()
                     throws java.lang.Exception
Test, whether we can invoke a method, passing a double value.

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

testDoubleResult

public void testDoubleResult()
                      throws java.lang.Exception
Test, whether we can invoke a method, returning a double value.

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

testByteArrayParam

public void testByteArrayParam()
                        throws java.lang.Exception
Test, whether we can invoke a method, passing a byte array.

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

testByteArrayResult

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

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

testObjectArrayParam

public void testObjectArrayParam()
                          throws java.lang.Exception
Test, whether we can invoke a method, passing an object array.

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

testObjectArrayResult

public void testObjectArrayResult()
                           throws java.lang.Exception
Test, whether we can invoke a method, returning an object array.

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

testMapParam

public void testMapParam()
                  throws java.lang.Exception
Test, whether we can invoke a method, passing a map.

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

testMapResult

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

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

testNodeParam

public void testNodeParam()
                   throws java.lang.Exception
Test, whether we can invoke a method, passing a DOM node as parameter.

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

testSerializableParam

public void testSerializableParam()
                           throws java.lang.Exception
Test, whether we can invoke a method, passing an instance of Serializable as a parameter.

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

testCalendarParam

public void testCalendarParam()
                       throws java.lang.Exception
Tests, whether we can invoke a method, passing an instance of Calendar as a parameter.

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

testDateParam

public void testDateParam()
                   throws java.lang.Exception
Tests, whether we can invoke a method, passing an instance of Date as a parameter.

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

testCatchNPE

public void testCatchNPE()
                  throws java.lang.Exception
Tests, whether a NullPointerException, thrown by the server, can be trapped by the client.

Throws:
java.lang.Exception


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