Return-Path: Delivered-To: apmail-cocoon-cvs-archive@www.apache.org Received: (qmail 39660 invoked from network); 20 Oct 2005 08:25:34 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 20 Oct 2005 08:25:33 -0000 Received: (qmail 53100 invoked by uid 500); 20 Oct 2005 08:25:29 -0000 Delivered-To: apmail-cocoon-cvs-archive@cocoon.apache.org Received: (qmail 53046 invoked by uid 500); 20 Oct 2005 08:25:29 -0000 Mailing-List: contact cvs-help@cocoon.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@cocoon.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list cvs@cocoon.apache.org Received: (qmail 53020 invoked by uid 99); 20 Oct 2005 08:25:29 -0000 X-ASF-Spam-Status: No, hits=-9.4 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [209.237.227.194] (HELO minotaur.apache.org) (209.237.227.194) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 20 Oct 2005 01:25:28 -0700 Received: (qmail 39266 invoked by uid 65534); 20 Oct 2005 08:24:58 -0000 Message-ID: <20051020082458.39255.qmail@minotaur.apache.org> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit 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 -0000 To: cvs@cocoon.apache.org From: bdelacretaz@apache.org X-Mailer: svnmailer-1.0.5 X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N 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(); }