* Verifies that the method
* <code>{@link XmlRpcRequestParser#parseRequest(InputStream)}</code> parses
* correctly a XML-RPC request containing four-byte signed integer parameters.
*/
public final void testParseRequestWithIntegerParameters() {
XmlRpcInteger[] parameters = { new XmlRpcInteger(new Integer(54)),
new XmlRpcInteger(new Integer(438)) };
XmlRpcRequest expected = new XmlRpcRequest(this.serviceName,
this.methodName, parameters);
StringBuffer builder = new StringBuffer();
builder.append("<?xml version=\"1.0\"?>");
builder.append("<methodCall><methodName>");
builder.append(this.serviceAndMethodNames);
builder.append("</methodName><params>");
int parameterCount = parameters.length;
for (int i = 0; i < parameterCount; i++) {
XmlRpcInteger xmlRpcInteger = parameters[i];
Integer value = (Integer) xmlRpcInteger.getValue();
// even parameters will have "i4" as name, odd parameters will have "int"
// as name.
String elementName = (i % 2 == 0) ? "i4" : "int";