Return-Path: Delivered-To: apmail-harmony-dev-archive@www.apache.org Received: (qmail 31306 invoked from network); 4 Mar 2007 04:48:39 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 4 Mar 2007 04:48:39 -0000 Received: (qmail 91117 invoked by uid 500); 4 Mar 2007 04:48:46 -0000 Delivered-To: apmail-harmony-dev-archive@harmony.apache.org Received: (qmail 91085 invoked by uid 500); 4 Mar 2007 04:48:46 -0000 Mailing-List: contact dev-help@harmony.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@harmony.apache.org Delivered-To: mailing list dev@harmony.apache.org Received: (qmail 91076 invoked by uid 99); 4 Mar 2007 04:48:46 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 03 Mar 2007 20:48:46 -0800 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of ruoshen.c@gmail.com designates 64.233.162.233 as permitted sender) Received: from [64.233.162.233] (HELO nz-out-0506.google.com) (64.233.162.233) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 03 Mar 2007 20:48:35 -0800 Received: by nz-out-0506.google.com with SMTP id j2so1156220nzf for ; Sat, 03 Mar 2007 20:48:15 -0800 (PST) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=M6YlFT02Upf/OD6OD0opU/NJeWJXW3I8+qU6GpuNoj4aBChHuR1y7HEnjiwkBYIA7Eld8ThAlXOWeyjAelnmnEktyVyTcrSpL0FfoKWMs61jhT7Y89L6yQd6Ve8QLe9HcWrrD1Vx1425EtZpEzUrr2rW9sWPpocOsfAeAs4pq6k= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=gLLha+tpEQTqDd9+69P3dy4PgfrGcaceuX2NAn+j66eAGTyrWeFEZde2KUCHa6B7N65EWBBr0yKuBOBwDMK9uEludiyj3EV1mOOLmr9QsG+OXO/ZDFA30Sw4Wy86rSWZd/IxKMWphgeeKcld1Ridjq4Mjv7tiWveU+vtXtzesxk= Received: by 10.114.161.11 with SMTP id j11mr834752wae.1172983694810; Sat, 03 Mar 2007 20:48:14 -0800 (PST) Received: by 10.114.197.6 with HTTP; Sat, 3 Mar 2007 20:48:14 -0800 (PST) Message-ID: <843dd4f00703032048x7b10e037t49fabb8cf23e8ad8@mail.gmail.com> Date: Sun, 4 Mar 2007 12:48:14 +0800 From: "Ruth Cao" To: dev@harmony.apache.org Subject: Re: [classlib][test]how to set up a http proxy server for unit test. In-Reply-To: <1BF65799-9356-4B41-82A4-6330177C421C@pobox.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_118082_32596053.1172983694779" References: <211709bc0702270142k6d513af1g1e51133ae753a0c6@mail.gmail.com> <2c9597b90702280218m54979a51x6c705ae18a1aeabb@mail.gmail.com> <211709bc0702281838v14e78798kd1d61910487207a7@mail.gmail.com> <2c9597b90703010150k17266c17l3cc2768730cadc3a@mail.gmail.com> <1BF65799-9356-4B41-82A4-6330177C421C@pobox.com> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_118082_32596053.1172983694779 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline 2007/3/3, Geir Magnusson Jr. : > > Why not leave them in the exclude list? Since in some tests (i.e. tests.api.java.net.HttpURLConnectionTest), we can get all the test cases out of the exclude list using Jetty except the one which needs a proxy server. If we comment out the related one, more test cases can be run continuously. Also, what do we need from Jetty? We need a ProxyHandler that can start an embeded proxy server. Jetty 6 has a plan to implement it, but it seems that it won't be available in a short time[1] :-) [1] http://www.nabble.com/Jetty6-proxy-handler-t2721411.html Greg and Jan are really great > people, and may be willing to help us out, especially when they find > out that the World's First Implementation of Open Source Java needs > it :) > > geir > > On Mar 1, 2007, at 1:50 AM, Alexei Zakharov wrote: > > >> that's not a bad idea, we can find all TODOs in exclude lists rather > >> than src code. > > > > Yes, this is exactly what I mean. > > > > Thanks, > > > > 2007/3/1, Tony Wu : > >> Thanks Alexei, > >> > >> that's not a bad idea, we can find all TODOs in exclude lists rather > >> than src code. > >> I'll try if no one object. > >> > >> On 2/28/07, Alexei Zakharov wrote: > >> > Hi Tony, > >> > > >> > IIRC we have agreed that commenting out test code is not the best > >> > possible solution. Can we just split off proxy-related tests into a > >> > separate test class (ProxyTest for example) and then put > >> > this new class to exclude list? > >> > > >> > Thanks, > >> > > >> > 2007/2/27, Tony Wu : > >> > > Hello all, > >> > > I have been working on moving out the exclude tests in > >> java.net these > >> > > days. Some of them need a proxy server. IIRC we have adopted > >> jetty to > >> > > avoid external server dependencies before, but unfortunately, the > >> > > ProxyHandler of Jetty has not been implemented yet. So I > >> purpose to > >> > > comment out the proxy related testcases and move out the test > >> class > >> > > from exclude list. I'll add a TODO in the code and wait for the > >> > > upcoming new version of Jetty. > >> > > > >> > > Another way is tha find out another tool to set up a proxy > >> server. In > >> > > my opinion, we'd better not import another dependency if > >> possible. And > >> > > if it is not an embedding server, we have to write some ugly > >> code in > >> > > order to run test automatically. > >> > > > >> > > suggestions?concerns? > > > > -- > > Alexei Zakharov, > > Intel ESSD > > -- Best regards, Ruth Cao China Software Development Lab, IBM ------=_Part_118082_32596053.1172983694779--