cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bdelacre...@apache.org
Subject svn commit: r326860 - in /cocoon/branches/BRANCH_2_1_X: build.properties src/test/htmlunit/org/apache/cocoon/HttpClientResponse.java
Date Thu, 20 Oct 2005 08:24:17 GMT
Author: bdelacretaz
Date: Thu Oct 20 01:23:45 2005
New Revision: 326860

URL: http://svn.apache.org/viewcvs?rev=326860&view=rev
Log:
HtmlUnit tests updated to run with htmlunit 1.7

Modified:
    cocoon/branches/BRANCH_2_1_X/build.properties
    cocoon/branches/BRANCH_2_1_X/src/test/htmlunit/org/apache/cocoon/HttpClientResponse.java

Modified: cocoon/branches/BRANCH_2_1_X/build.properties
URL: http://svn.apache.org/viewcvs/cocoon/branches/BRANCH_2_1_X/build.properties?rev=326860&r1=326859&r2=326860&view=diff
==============================================================================
--- cocoon/branches/BRANCH_2_1_X/build.properties (original)
+++ cocoon/branches/BRANCH_2_1_X/build.properties Thu Oct 20 01:23:45 2005
@@ -62,7 +62,9 @@
 
 # ---- htmlUnit ----------------------------------------------------------------
 
-htmlunit.home = /default-from-build.properties/htmlunit-1.5
+# Tests currently require htmlunit 1.7, please change this 
+# comment and the default value below if moving to another version
+htmlunit.home = /default-from-build.properties/htmlunit-1.7
 htmlunit.test.baseurl=http://localhost:8888/
 # for serious leak testing increase iteration count to 10000
 htmlunit.test.Bug26186InternalRequestMemoryLeak.iterations=1

Modified: cocoon/branches/BRANCH_2_1_X/src/test/htmlunit/org/apache/cocoon/HttpClientResponse.java
URL: http://svn.apache.org/viewcvs/cocoon/branches/BRANCH_2_1_X/src/test/htmlunit/org/apache/cocoon/HttpClientResponse.java?rev=326860&r1=326859&r2=326860&view=diff
==============================================================================
--- cocoon/branches/BRANCH_2_1_X/src/test/htmlunit/org/apache/cocoon/HttpClientResponse.java
(original)
+++ cocoon/branches/BRANCH_2_1_X/src/test/htmlunit/org/apache/cocoon/HttpClientResponse.java
Thu Oct 20 01:23:45 2005
@@ -17,6 +17,7 @@
 package org.apache.cocoon;
 
 import com.gargoylesoftware.htmlunit.WebResponse;
+import com.gargoylesoftware.htmlunit.SubmitMethod;
 
 import org.apache.commons.httpclient.HttpClient;
 import org.apache.commons.httpclient.HttpMethodBase;
@@ -24,6 +25,7 @@
 import java.io.InputStream;
 import java.io.IOException;
 import java.net.URL;
+import java.util.List;
 
 /**
  * Wrap the result of an httpclient Method execution into an HtmlUnit
@@ -84,6 +86,16 @@
         return url;
     }
 
+    public SubmitMethod getRequestMethod() {
+    		// we'll implement this if/when we need it
+		throw new Error("HttpClientResponse.getRequestMethod() is not implemented yet");
+    }
+    
+    public List getResponseHeaders() {
+		// we'll implement this if/when we need it
+    		throw new Error("HttpClientResponse.getResponseHeaders() is not implemented yet");
+    }
+    
     public String getResponseHeaderValue(String headerName) {
         return method.getResponseHeader(headerName).getValue();
     }



Mime
View raw message