Return-Path: Delivered-To: apmail-harmony-dev-archive@www.apache.org Received: (qmail 74393 invoked from network); 29 May 2010 06:50:23 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 29 May 2010 06:50:23 -0000 Received: (qmail 74963 invoked by uid 500); 29 May 2010 06:50:23 -0000 Delivered-To: apmail-harmony-dev-archive@harmony.apache.org Received: (qmail 74701 invoked by uid 500); 29 May 2010 06:50:20 -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 74692 invoked by uid 99); 29 May 2010 06:50:19 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 29 May 2010 06:50:19 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=AWL,FREEMAIL_FROM,HTML_MESSAGE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of yanglang@gmail.com designates 74.125.82.49 as permitted sender) Received: from [74.125.82.49] (HELO mail-ww0-f49.google.com) (74.125.82.49) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 29 May 2010 06:50:14 +0000 Received: by wwc33 with SMTP id 33so1432153wwc.36 for ; Fri, 28 May 2010 23:49:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type; bh=YfnMPe1KqgLD9Y5OgnU3vVxKqewbj4uhuyIUhGmUEmk=; b=fvoSVxk1j3Y5J9uRbikMlaEllL9lU88HigaQq6bhJ4RFoQTJZ17HlQq8GJjc5KSdet 9zhX3kKaciGlOMp6OePDFVPsdTrbTv7BiIo00acw0e3GMkAiupo6N3K/iu1WdZIdJXTP la+UIGQSWSMJbTaxK1w9z/Td3tjgFaBSOmFUo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=hLgoJKLZ74dsv52OpwMH2JsRI9A58tXEmGRyYnwiXscktj9SnRSA+GY9Z0IpKggPfO awQXHlltAU0RyCn8Lf0tq46n1cU69s1lkfVmP3ZTw5AcJZeM1kP3/fZJaIwxFEZF9sOV cALpjLlIkIxiVsh6RwpHjrAlChC2DsHmC9bxM= MIME-Version: 1.0 Received: by 10.216.166.144 with SMTP id g16mr2237409wel.35.1275115786513; Fri, 28 May 2010 23:49:46 -0700 (PDT) Received: by 10.216.1.77 with HTTP; Fri, 28 May 2010 23:49:46 -0700 (PDT) In-Reply-To: <20100523080723.634D9478479@athena.apache.org> References: <20100523080723.634D9478479@athena.apache.org> Date: Sat, 29 May 2010 02:49:46 -0400 Message-ID: Subject: Re: How to test properly when dependent class is not included in RI From: Lang Yang To: dev@harmony.apache.org Content-Type: multipart/alternative; boundary=0016364176bf80af560487b60730 --0016364176bf80af560487b60730 Content-Type: text/plain; charset=UTF-8 Thanks Mark. I have created a patch under HARMONY-6507 (imageio_build.xml) for this. Could you please take a look at this? Because I only need to use plugin classes from package org.apache.harmony.x.imageio/plugins.* in order to perform the test, so I have added a section under target "-compile-tests" to create a supporting JAR file which contains all plugin classes, and added that JAR file to the classpath of "test-module". It seems fixed the original problem I had. I don't know if you prefer to use separate folders, or this way is just fine? Thanks, Lang On Sun, May 23, 2010 at 4:06 AM, Mark Hindess wrote: > > In message , > Lang Yang writes: > > > > Thanks Alexey and Nathan! > > > > On Sat, May 22, 2010 at 4:09 PM, Nathan Beyer > wrote: > > > > > It's not quite as simple as that. There are plenty of cases where > > > using implementation specific classes is fine - most of the modules > > > have hundreds of tests like this. This is why many of the modules have > > > a 'api' and a 'impl' folder separation. > > > > > > > Is that mean If I have used implementation specific classes, I should > > put the test case in 'impl' folder? Is there an ANT target defined to > > test them seperate? > > Adding a folder for implementation specific tests will require changing > the modules/imageio/build.xml and modules/imageio/make/run-test.xml and > changing the src/test directory structure. I can do this when the code > freeze is over. > > -Mark. > > > --0016364176bf80af560487b60730--