dlr 02/02/18 21:00:16
Modified: src/test/org/apache/xmlrpc ClientServerRpcTest.java
Log:
Loop the testServer() implementation a few hundred times for some
additional code coverage.
Revision Changes Path
1.6 +9 -5 xml-rpc/src/test/org/apache/xmlrpc/ClientServerRpcTest.java
Index: ClientServerRpcTest.java
===================================================================
RCS file: /home/cvs/xml-rpc/src/test/org/apache/xmlrpc/ClientServerRpcTest.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -u -r1.5 -r1.6
--- ClientServerRpcTest.java 19 Feb 2002 04:55:03 -0000 1.5
+++ ClientServerRpcTest.java 19 Feb 2002 05:00:16 -0000 1.6
@@ -68,7 +68,7 @@
* Tests XmlRpc run-time.
*
* @author <a href="mailto:[EMAIL PROTECTED]">Daniel Rall</a>
- * @version $Id: ClientServerRpcTest.java,v 1.5 2002/02/19 04:55:03 dlr Exp $
+ * @version $Id: ClientServerRpcTest.java,v 1.6 2002/02/19 05:00:16 dlr Exp $
*/
public class ClientServerRpcTest
extends TestCase
@@ -165,10 +165,14 @@
{
try
{
- InputStream in = new ByteArrayInputStream(RPC_REQUEST.getBytes());
- byte[] response = server.execute(in);
- assertTrue("Response did not contain " + REQUEST_PARAM_XML,
- new String(response).indexOf(REQUEST_PARAM_XML) != -1);
+ for (int i = 0; i < 300; i++)
+ {
+ InputStream in =
+ new ByteArrayInputStream(RPC_REQUEST.getBytes());
+ String response = new String(server.execute(in));
+ assertTrue("Response did not contain " + REQUEST_PARAM_XML,
+ response.indexOf(REQUEST_PARAM_XML) != -1);
+ }
}
catch (Exception e)
{