You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by bd...@apache.org on 2005/10/20 10:24:17 UTC
svn commit: r326860 - in /cocoon/branches/BRANCH_2_1_X: build.properties
src/test/htmlunit/org/apache/cocoon/HttpClientResponse.java
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();
}