jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pmoua...@apache.org
Subject svn commit: r1220432 - /jmeter/trunk/test/src/org/apache/jmeter/protocol/http/proxy/TestHttpRequestHdr.java
Date Sun, 18 Dec 2011 15:35:27 GMT
Author: pmouawad
Date: Sun Dec 18 15:35:27 2011
New Revision: 1220432

URL: http://svn.apache.org/viewvc?rev=1220432&view=rev
Log:
Bug 52352 - Proxy : Support IPv6 URLs capture

Modified:
    jmeter/trunk/test/src/org/apache/jmeter/protocol/http/proxy/TestHttpRequestHdr.java

Modified: jmeter/trunk/test/src/org/apache/jmeter/protocol/http/proxy/TestHttpRequestHdr.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/test/src/org/apache/jmeter/protocol/http/proxy/TestHttpRequestHdr.java?rev=1220432&r1=1220431&r2=1220432&view=diff
==============================================================================
--- jmeter/trunk/test/src/org/apache/jmeter/protocol/http/proxy/TestHttpRequestHdr.java (original)
+++ jmeter/trunk/test/src/org/apache/jmeter/protocol/http/proxy/TestHttpRequestHdr.java Sun
Dec 18 15:35:27 2011
@@ -139,6 +139,16 @@ public class TestHttpRequestHdr  extends
 
     public void testEncodedArguments() throws Exception {
         String url = "http://localhost/matrix.html";
+        testEncodedArguments(url);
+    }
+     
+    
+    public void testEncodedArgumentsIPv6() throws Exception {
+        String url = "http://[::1]:8080/matrix.html";
+        testEncodedArguments(url);
+    }
+        	
+    public void testEncodedArguments(String url) throws Exception {
         // A HTTP GET request, with encoding not known 
         String contentEncoding = "";
         String queryString = "abc%3FSPACE=a+b&space=a%20b&query=What%3F"; 
@@ -229,7 +239,14 @@ public class TestHttpRequestHdr  extends
     }
     
     public void testGetRequestEncodings() throws Exception {
-        String url = "http://localhost/matrix.html";
+    	testGetRequestEncodings("http://localhost/matrix.html");
+    }
+    
+    public void testGetRequestEncodingsIPv6() throws Exception {
+    	testGetRequestEncodings("http://[::1]:8080/matrix.html");
+    }
+    
+    public void testGetRequestEncodings(String url) throws Exception {
         // A HTTP GET request, with encoding not known
         String contentEncoding = "";
         String param1Value = "yes";
@@ -459,6 +476,7 @@ public class TestHttpRequestHdr  extends
         assertEquals("name",header.getName());
         assertEquals("value",header.getValue());
     }
+    
 
     public void testParse2() throws Exception {// spaces after :
         HttpRequestHdr req = new HttpRequestHdr();



Mime
View raw message