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 TestException
s 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, serializeCall
public 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 InternalClient
in
- input stream containing response documentjava.io.IOException
public 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.IOException
public 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