class TestXmlrpcClient extends InternalClient
InternalClient.callAndWait(java.lang.String, java.util.List) method is either
SUCCESS or FAILURE, rather than the actual result
of the call.
Methods may throw TestExceptions to indicate assertion failures.| Modifier and Type | Field and Description |
|---|---|
static java.lang.Object |
FAILURE |
static java.lang.Object |
SUCCESS |
| Constructor and Description |
|---|
TestXmlrpcClient(java.net.URL endpoint)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
checkFailureCall(java.lang.String method,
java.util.List params)
Makes a call, and asserts that the result is an XML-RPC fault.
|
void |
checkSuccessCall(java.lang.String method,
java.util.List params)
Makes a call, and asserts that the result is a normal XML-RPC
response.
|
protected java.lang.Object |
deserializeResponse(java.io.InputStream in)
|
callAndForget, callAndWait, serializeCallpublic static final java.lang.Object SUCCESS
public static final java.lang.Object FAILURE
TestXmlrpcClient(java.net.URL endpoint)
endpoint - hub HTTP endpointprotected java.lang.Object deserializeResponse(java.io.InputStream in)
throws java.io.IOException
deserializeResponse in class InternalClientin - input stream containing response documentjava.io.IOExceptionpublic void checkSuccessCall(java.lang.String method,
java.util.List params)
throws java.io.IOException
method - XML-RPC method nameparams - parameters for XML-RPC call (SAMP-compatible)TestException - if the response is not a successjava.io.IOExceptionpublic void checkFailureCall(java.lang.String method,
java.util.List params)
throws java.io.IOException
method - XML-RPC method nameparams - parameters for XML-RPC call (SAMP-compatible)TestException - if the response is not a faultjava.io.IOException