Return-Path: Delivered-To: apmail-maven-users-archive@www.apache.org Received: (qmail 12204 invoked from network); 6 Oct 2005 19:07:02 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 6 Oct 2005 19:07:02 -0000 Received: (qmail 11810 invoked by uid 500); 6 Oct 2005 19:06:56 -0000 Delivered-To: apmail-maven-users-archive@maven.apache.org Received: (qmail 11752 invoked by uid 500); 6 Oct 2005 19:06:56 -0000 Mailing-List: contact users-help@maven.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Maven Users List" Reply-To: "Maven Users List" Delivered-To: mailing list users@maven.apache.org Received: (qmail 11741 invoked by uid 99); 6 Oct 2005 19:06:55 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Oct 2005 12:06:55 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=RCVD_BY_IP,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of john.r.fallows@gmail.com designates 72.14.204.202 as permitted sender) Received: from [72.14.204.202] (HELO qproxy.gmail.com) (72.14.204.202) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Oct 2005 12:06:59 -0700 Received: by qproxy.gmail.com with SMTP id c8so468908qbc for ; Thu, 06 Oct 2005 12:06:34 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=sukZDrYcGNN5SRZfnqUPfRp7oG+C0S/mcDusrbhVXqwb4xBHakGfSC2PNWydjAkVJ5HYnAH2CrTTUWGl0JyR/pFzfozasW8kdtiwz90Y99O+2ohdeq+kHY8E7nBkMJKx0brAHFkesqC9VC2rGfAuDXl/M4HdC7TPEkuXy0npaB4= Received: by 10.65.119.7 with SMTP id w7mr426290qbm; Thu, 06 Oct 2005 12:06:34 -0700 (PDT) Received: by 10.65.154.6 with HTTP; Thu, 6 Oct 2005 12:06:34 -0700 (PDT) Message-ID: <83caac420510061206p7fba988dqa1e945883ea3d53@mail.gmail.com> Date: Thu, 6 Oct 2005 19:06:34 +0000 From: John Fallows Reply-To: John Fallows To: Maven Users List Subject: Re: Delivering mock objects for a public API [was Re: [m2] custom compiler mojo] In-Reply-To: <1127921223.30888.27.camel@echidna.inamo.no> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <83caac4205092321312ba8b7b2@mail.gmail.com> <1127679976.30266.60.camel@echidna.inamo.no> <83caac42050926150259fdcc95@mail.gmail.com> <1127921223.30888.27.camel@echidna.inamo.no> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N On 9/28/05, Trygve Laugst=F8l wrote: > On Mon, 2005-09-26 at 22:02 +0000, John Fallows wrote: > > On 9/25/05, Trygve Laugst=F8l wrote: > > > On Sat, 2005-09-24 at 04:31 +0000, John Fallows wrote: > > > > On 9/23/05, Trygve Laugst=F8l wrote: > > > > > On Fri, 2005-09-23 at 08:03 +0000, John Fallows wrote: > > [snip] > > > > [1]: http://jira.codehaus.org/browse/MNG-932 > > > > Yes, I understand that it would be generally useful to deliver a > > subset of the unit test code as a JAR. > > > > The above proposal still stands though, although the name "mock" can > > be treated as a placeholder for that subset until we have a better > > name. > > Not sure I agree, what more than distributing the test do you need? We need to make sure that not all the test code is delivered in the JAR, just the mocks. The reason is that this mock JAR is essentially a public API for testing, so any other test implementation code for the API project should not be included. This will prevent test authors using the mock JAR from inadvertently establishing a dependency on non-public test code in their own tests, that would then break when the API tests are changed. > > > Alternatively, is there any mileage in the idea of having completely > > separate sub-modules for main, mock, and test, all inside the > > api-module? > > Don't think so, but I also think I'm missing some information here :) Let me know what you think, now that the above additional requirement is more clear. Thanks in advance. Kind Regards, John Fallows. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@maven.apache.org For additional commands, e-mail: users-help@maven.apache.org