org.apache.xmlrpc.test
Class BaseTest.Remote

java.lang.Object
  extended by org.apache.xmlrpc.test.BaseTest.Remote
Enclosing class:
BaseTest

public static class BaseTest.Remote
extends java.lang.Object

The remote class being invoked by the test case.


Nested Class Summary
static class BaseTest.Remote.CalendarWrapper
          Example of a Serializable instance.
 
Constructor Summary
BaseTest.Remote()
           
 
Method Summary
 int byteArrayParam(byte[] pArg)
          Returns the sum of the bytes in the given byte array.
 byte[] byteArrayResult(int pArg)
          Returns an array with the bytes 0..pArg.
 int byteParam(byte pArg)
          Returns the argument, multiplied by two.
 byte byteResult(byte pArg)
          Returns the argument, multiplied by two.
 java.util.Calendar calendarParam(java.util.Calendar pCal)
          Returns midnight of the following day.
 java.util.Date dateParam(java.util.Date pDate)
          Returns midnight of the following day.
 double doubleParam(double pArg)
          Returns the argument, multiplied by two.
 double doubleResult(double pArg)
          Returns the argument, multiplied by two.
 double floatParam(float pArg)
          Returns the argument, multiplied by two.
 float floatResult(float pArg)
          Returns the argument, multiplied by two.
 int intParam(int pArg)
          Returns the argument, multiplied by two.
 int longParam(long pArg)
          Returns the argument, multiplied by two.
 long longResult(long pArg)
          Returns the argument, multiplied by two.
 int mapParam(java.util.Map pArg)
          Returns a sum over the entries in the map.
 java.util.Map mapResult(int pArg)
          Returns a map with the stringified values 0..pArg as keys and the corresponding integers as values.
 int nodeParam(org.w3c.dom.Node pNode)
          Returns the sum of all "int" nodes in pNode.
 java.lang.String nullableStringParam(java.lang.String pArg)
          Returns the argument, concatenated with itself.
 java.lang.String nullableStringResult(java.lang.String pArg)
          Returns the argument, concatenated with itself.
 int objectArrayParam(java.lang.Object[] pArg)
          Returns the sum over the objects in the array.
 java.lang.Object[] objectArrayResult(int pArg)
          Returns an array of integers with the values 0..pArg.
 long serializableParam(BaseTest.Remote.CalendarWrapper pCal)
          Returns the calendar value in milliseconds.
 int shortParam(short pArg)
          Returns the argument, multiplied by two.
 short shortResult(short pArg)
          Returns the argument, multiplied by two.
 java.lang.String stringParam(java.lang.String pArg)
          Returns the argument, concatenated with itself.
 java.lang.Object throwNPE()
          Throws a NullPointerException.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BaseTest.Remote

public BaseTest.Remote()
Method Detail

byteParam

public int byteParam(byte pArg)
Returns the argument, multiplied by two.

Parameters:
pArg - The argument being doubled.
Returns:
The argument, multiplied by two.

byteResult

public byte byteResult(byte pArg)
Returns the argument, multiplied by two.

Parameters:
pArg - The argument being doubled.
Returns:
The argument, multiplied by two.

shortParam

public int shortParam(short pArg)
Returns the argument, multiplied by two.

Parameters:
pArg - The argument being doubled.
Returns:
The argument, multiplied by two.

shortResult

public short shortResult(short pArg)
Returns the argument, multiplied by two.

Parameters:
pArg - The argument being doubled.
Returns:
The argument, multiplied by two.

intParam

public int intParam(int pArg)
Returns the argument, multiplied by two.

Parameters:
pArg - The argument being doubled.
Returns:
The argument, multiplied by two.

longParam

public int longParam(long pArg)
Returns the argument, multiplied by two.

Parameters:
pArg - The argument being doubled.
Returns:
The argument, multiplied by two.

longResult

public long longResult(long pArg)
Returns the argument, multiplied by two.

Parameters:
pArg - The argument being doubled.
Returns:
The argument, multiplied by two.

floatParam

public double floatParam(float pArg)
Returns the argument, multiplied by two.

Parameters:
pArg - The argument being doubled.
Returns:
The argument, multiplied by two.

floatResult

public float floatResult(float pArg)
Returns the argument, multiplied by two.

Parameters:
pArg - The argument being doubled.
Returns:
The argument, multiplied by two.

doubleParam

public double doubleParam(double pArg)
Returns the argument, multiplied by two.

Parameters:
pArg - The argument being doubled.
Returns:
The argument, multiplied by two.

doubleResult

public double doubleResult(double pArg)
Returns the argument, multiplied by two.

Parameters:
pArg - The argument being doubled.
Returns:
The argument, multiplied by two.

stringParam

public java.lang.String stringParam(java.lang.String pArg)
Returns the argument, concatenated with itself.

Parameters:
pArg - The argument being concatenated.
Returns:
The argument, concatenated with itself.

throwNPE

public java.lang.Object throwNPE()
Throws a NullPointerException.


nullableStringParam

public java.lang.String nullableStringParam(java.lang.String pArg)
Returns the argument, concatenated with itself.

Parameters:
pArg - The argument being concatenated.
Returns:
The argument, concatenated with itself.

nullableStringResult

public java.lang.String nullableStringResult(java.lang.String pArg)
Returns the argument, concatenated with itself.

Parameters:
pArg - The argument being concatenated.
Returns:
The argument, concatenated with itself.

byteArrayParam

public int byteArrayParam(byte[] pArg)
Returns the sum of the bytes in the given byte array.

Parameters:
pArg - The array of bytes being added.
Returns:
Sum over the bytes in the array.

byteArrayResult

public byte[] byteArrayResult(int pArg)
Returns an array with the bytes 0..pArg.

Parameters:
pArg - Requestes byte array length.
Returns:
Byte array with 0..pArg.

objectArrayParam

public int objectArrayParam(java.lang.Object[] pArg)
Returns the sum over the objects in the array.

Parameters:
pArg - Object array being added
Returns:
Sum over the objects in the array

objectArrayResult

public java.lang.Object[] objectArrayResult(int pArg)
Returns an array of integers with the values 0..pArg.

Parameters:
pArg - Requested array length.
Returns:
Array of integers with the values 0..pArg

mapParam

public int mapParam(java.util.Map pArg)
Returns a sum over the entries in the map. Each key is multiplied with its value.

Parameters:
pArg - The map being iterated.
Returns:
Sum of keys, multiplied by their values.

mapResult

public java.util.Map mapResult(int pArg)
Returns a map with the stringified values 0..pArg as keys and the corresponding integers as values.

Parameters:
pArg - Requested map size.
Returns:
Map with the keys "0".."pArg" and 0..pArg as values.

nodeParam

public int nodeParam(org.w3c.dom.Node pNode)
Returns the sum of all "int" nodes in pNode.

Parameters:
pNode - The node being counted.
Returns:
The sum of the values of all "int" nodes.

serializableParam

public long serializableParam(BaseTest.Remote.CalendarWrapper pCal)
Returns the calendar value in milliseconds.

Parameters:
pCal - Calendar object
Returns:
pCal.getTime().getTime().

calendarParam

public java.util.Calendar calendarParam(java.util.Calendar pCal)
Returns midnight of the following day.


dateParam

public java.util.Date dateParam(java.util.Date pDate)
Returns midnight of the following day.



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