hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r290240 - /jakarta/httpclient/trunk/coyote-httpconnector/src/tests/tests/performance/PerformanceTest.java
Date Mon, 19 Sep 2005 18:58:29 GMT
Author: olegk
Date: Mon Sep 19 11:58:24 2005
New Revision: 290240

URL: http://svn.apache.org/viewcvs?rev=290240&view=rev
Log:
More test URLs

Modified:
    jakarta/httpclient/trunk/coyote-httpconnector/src/tests/tests/performance/PerformanceTest.java

Modified: jakarta/httpclient/trunk/coyote-httpconnector/src/tests/tests/performance/PerformanceTest.java
URL: http://svn.apache.org/viewcvs/jakarta/httpclient/trunk/coyote-httpconnector/src/tests/tests/performance/PerformanceTest.java?rev=290240&r1=290239&r2=290240&view=diff
==============================================================================
--- jakarta/httpclient/trunk/coyote-httpconnector/src/tests/tests/performance/PerformanceTest.java
(original)
+++ jakarta/httpclient/trunk/coyote-httpconnector/src/tests/tests/performance/PerformanceTest.java
Mon Sep 19 11:58:24 2005
@@ -102,16 +102,18 @@
 	}
 
 	private static HttpMutableRequest[] generateRequests() {
-		HttpGetRequest  r1 = new HttpGetRequest("/tomcat-docs/changelog.html"); 
-		HttpGetRequest  r2 = new HttpGetRequest("/servlets-examples/servlet/RequestInfoExample");

-		HttpPostRequest r3 = new HttpPostRequest("/servlets-examples/servlet/RequestInfoExample");
+		HttpGetRequest  r1 = new HttpGetRequest("/tomcat-docs/changelog.html");
+		HttpGetRequest  r2 = new HttpGetRequest("/jsp-examples/jsp2/tagfiles/products.jsp");  
+		HttpGetRequest  r3 = new HttpGetRequest("/servlets-examples/servlet/RequestInfoExample");

+		HttpPostRequest r4 = new HttpPostRequest("/servlets-examples/servlet/RequestInfoExample");
+		HttpGetRequest  r5 = new HttpGetRequest("/tomcat-docs/realm-howto.html");
 		byte[] stuff = new byte[1000000];
 		Random rnd = new Random();
 		rnd.nextBytes(stuff);
 		ByteArrayEntity entity = new ByteArrayEntity(stuff);
         entity.setChunked(true);
-		r3.setEntity(entity);
-		return new HttpMutableRequest[] { r1, r2, r3 };
+		r4.setEntity(entity);
+		return new HttpMutableRequest[] { r1, r2, r3, r4, r5 };
 	}
 	
 	private void execute(



Mime
View raw message