|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectTestCase
org.apache.xmlrpc.test.XmlRpcTestCase
org.apache.xmlrpc.test.BaseTest
public class BaseTest
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 | |
|---|---|
private static java.lang.String |
INT_TAG
|
private static java.lang.String |
INT_URI
|
private static java.lang.String |
ROOT_TAG
|
| Fields inherited from class org.apache.xmlrpc.test.XmlRpcTestCase |
|---|
providers |
| Constructor Summary | |
|---|---|
BaseTest()
|
|
| Method Summary | |
|---|---|
private void |
checkMap(java.util.Map pResult)
|
protected org.apache.xmlrpc.server.XmlRpcHandlerMapping |
getHandlerMapping()
|
private java.util.Calendar |
newCalendarParam()
|
private java.util.Calendar |
newCalendarResult()
|
void |
testByteArrayParam()
Test, whether we can invoke a method, passing a byte array. |
private void |
testByteArrayParam(ClientProvider pProvider)
|
void |
testByteArrayResult()
Test, whether we can invoke a method, returning a byte array. |
private void |
testByteArrayResult(ClientProvider pProvider)
|
void |
testByteParam()
Test, whether we can invoke a method, passing a byte value. |
private void |
testByteParam(ClientProvider pProvider)
|
void |
testByteResult()
Test, whether we can invoke a method, returning a byte. |
private void |
testByteResult(ClientProvider pProvider)
|
void |
testCalendarParam()
Tests, whether we can invoke a method, passing an instance of Calendar as a parameter. |
private void |
testCalendarParam(ClientProvider pProvider)
|
void |
testCatchNPE()
Tests, whether a NullPointerException, thrown by the server, can be trapped by the client. |
private void |
testCatchNPE(ClientProvider pProvider)
|
void |
testDateParam()
Tests, whether we can invoke a method, passing an instance of Date as a parameter. |
private void |
testDateParam(ClientProvider pProvider)
|
void |
testDoubleParam()
Test, whether we can invoke a method, passing a double value. |
private void |
testDoubleParam(ClientProvider pProvider)
|
void |
testDoubleResult()
Test, whether we can invoke a method, returning a double value. |
private void |
testDoubleResult(ClientProvider pProvider)
|
void |
testFloatParam()
Test, whether we can invoke a method, passing a float value. |
private void |
testFloatParam(ClientProvider pProvider)
|
void |
testFloatResult()
Test, whether we can invoke a method, returning a float value. |
private void |
testFloatResult(ClientProvider pProvider)
|
void |
testIntParam()
Test, whether we can invoke a method, passing an integer value. |
private void |
testIntParam(ClientProvider pProvider)
|
void |
testLongParam()
Test, whether we can invoke a method, passing a long value. |
private void |
testLongParam(ClientProvider pProvider)
|
void |
testLongResult()
Test, whether we can invoke a method, returning a long value. |
private void |
testLongResult(ClientProvider pProvider)
|
void |
testMapParam()
Test, whether we can invoke a method, passing a map. |
private void |
testMapParam(ClientProvider pProvider)
|
void |
testMapResult()
Test, whether we can invoke a method, returning a map. |
private void |
testMapResult(ClientProvider pProvider)
|
void |
testNodeParam()
Test, whether we can invoke a method, passing a DOM node as parameter. |
private void |
testNodeParam(ClientProvider pProvider)
|
void |
testNullableStringParam()
Test, whether we can invoke a method, passing a string value or null. |
private void |
testNullableStringParam(ClientProvider pProvider)
|
void |
testNullableStringResult()
Test, whether we can invoke a method, returning a string value or null. |
private void |
testNullableStringResult(ClientProvider pProvider)
|
void |
testObjectArrayParam()
Test, whether we can invoke a method, passing an object array. |
private void |
testObjectArrayParam(ClientProvider pProvider)
|
void |
testObjectArrayResult()
Test, whether we can invoke a method, returning an object array. |
private void |
testObjectArrayResult(ClientProvider pProvider)
|
void |
testSerializableParam()
Test, whether we can invoke a method, passing an instance of Serializable as a parameter. |
private void |
testSerializableParam(ClientProvider pProvider)
|
void |
testShortParam()
Test, whether we can invoke a method, passing a short value. |
private void |
testShortParam(ClientProvider pProvider)
|
void |
testShortResult()
Test, whether we can invoke a method, returning a short value. |
private void |
testShortResult(ClientProvider pProvider)
|
void |
testStringParam()
Test, whether we can invoke a method, passing a string value. |
private void |
testStringParam(ClientProvider pProvider)
|
| Methods inherited from class org.apache.xmlrpc.test.XmlRpcTestCase |
|---|
getConfig, 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 |
|---|
private static final java.lang.String ROOT_TAG
private static final java.lang.String INT_TAG
private static final java.lang.String INT_URI
| Constructor Detail |
|---|
public BaseTest()
| Method Detail |
|---|
protected org.apache.xmlrpc.server.XmlRpcHandlerMapping getHandlerMapping()
throws java.io.IOException,
org.apache.xmlrpc.XmlRpcException
getHandlerMapping in class XmlRpcTestCasejava.io.IOException
org.apache.xmlrpc.XmlRpcException
public void testByteParam()
throws java.lang.Exception
java.lang.Exception - The test failed.
private void testByteParam(ClientProvider pProvider)
throws java.lang.Exception
java.lang.Exception
public void testByteResult()
throws java.lang.Exception
java.lang.Exception - The test failed.
private void testByteResult(ClientProvider pProvider)
throws java.lang.Exception
java.lang.Exception
public void testShortParam()
throws java.lang.Exception
java.lang.Exception - The test failed.
private void testShortParam(ClientProvider pProvider)
throws java.lang.Exception
java.lang.Exception
public void testShortResult()
throws java.lang.Exception
java.lang.Exception - The test failed.
private void testShortResult(ClientProvider pProvider)
throws java.lang.Exception
java.lang.Exception
public void testIntParam()
throws java.lang.Exception
java.lang.Exception - The test failed.
private void testIntParam(ClientProvider pProvider)
throws java.lang.Exception
java.lang.Exception
public void testLongParam()
throws java.lang.Exception
java.lang.Exception - The test failed.
private void testLongParam(ClientProvider pProvider)
throws java.lang.Exception
java.lang.Exception
public void testLongResult()
throws java.lang.Exception
java.lang.Exception - The test failed.
private void testLongResult(ClientProvider pProvider)
throws java.lang.Exception
java.lang.Exception
public void testStringParam()
throws java.lang.Exception
java.lang.Exception - The test failed.
private void testStringParam(ClientProvider pProvider)
throws java.lang.Exception
java.lang.Exception
public void testNullableStringParam()
throws java.lang.Exception
java.lang.Exception - The test failed.
private void testNullableStringParam(ClientProvider pProvider)
throws java.lang.Exception
java.lang.Exception
public void testNullableStringResult()
throws java.lang.Exception
java.lang.Exception - The test failed.
private void testNullableStringResult(ClientProvider pProvider)
throws java.lang.Exception
java.lang.Exception
public void testFloatParam()
throws java.lang.Exception
java.lang.Exception - The test failed.
private void testFloatParam(ClientProvider pProvider)
throws java.lang.Exception
java.lang.Exception
public void testFloatResult()
throws java.lang.Exception
java.lang.Exception - The test failed.
private void testFloatResult(ClientProvider pProvider)
throws java.lang.Exception
java.lang.Exception
public void testDoubleParam()
throws java.lang.Exception
java.lang.Exception - The test failed.
private void testDoubleParam(ClientProvider pProvider)
throws java.lang.Exception
java.lang.Exception
public void testDoubleResult()
throws java.lang.Exception
java.lang.Exception - The test failed.
private void testDoubleResult(ClientProvider pProvider)
throws java.lang.Exception
java.lang.Exception
public void testByteArrayParam()
throws java.lang.Exception
java.lang.Exception - The test failed.
private void testByteArrayParam(ClientProvider pProvider)
throws java.lang.Exception
java.lang.Exception
public void testByteArrayResult()
throws java.lang.Exception
java.lang.Exception - The test failed.
private void testByteArrayResult(ClientProvider pProvider)
throws java.lang.Exception
java.lang.Exception
public void testObjectArrayParam()
throws java.lang.Exception
java.lang.Exception - The test failed.
private void testObjectArrayParam(ClientProvider pProvider)
throws java.lang.Exception
java.lang.Exception
public void testObjectArrayResult()
throws java.lang.Exception
java.lang.Exception - The test failed.
private void testObjectArrayResult(ClientProvider pProvider)
throws java.lang.Exception
java.lang.Exception
public void testMapParam()
throws java.lang.Exception
java.lang.Exception - The test failed.
private void testMapParam(ClientProvider pProvider)
throws java.lang.Exception
java.lang.Exceptionprivate void checkMap(java.util.Map pResult)
public void testMapResult()
throws java.lang.Exception
java.lang.Exception - The test failed.
private void testMapResult(ClientProvider pProvider)
throws java.lang.Exception
java.lang.Exception
public void testNodeParam()
throws java.lang.Exception
java.lang.Exception - The test failed.
private void testNodeParam(ClientProvider pProvider)
throws java.lang.Exception
java.lang.Exception
public void testSerializableParam()
throws java.lang.Exception
Serializable as a parameter.
java.lang.Exception - The test failed.
private void testSerializableParam(ClientProvider pProvider)
throws java.lang.Exception
java.lang.Exception
public void testCalendarParam()
throws java.lang.Exception
Calendar as a parameter.
java.lang.Exception - The test failed.
private void testCalendarParam(ClientProvider pProvider)
throws java.lang.Exception
java.lang.Exceptionprivate java.util.Calendar newCalendarResult()
private java.util.Calendar newCalendarParam()
public void testDateParam()
throws java.lang.Exception
Date as a parameter.
java.lang.Exception - The test failed.
private void testDateParam(ClientProvider pProvider)
throws java.lang.Exception
java.lang.Exception
public void testCatchNPE()
throws java.lang.Exception
java.lang.Exception
private void testCatchNPE(ClientProvider pProvider)
throws java.lang.Exception
java.lang.Exception
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||