Return-Path: Delivered-To: apmail-incubator-harmony-dev-archive@www.apache.org Received: (qmail 35484 invoked from network); 12 Apr 2006 13:45:04 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 12 Apr 2006 13:45:04 -0000 Received: (qmail 48282 invoked by uid 500); 12 Apr 2006 13:45:00 -0000 Delivered-To: apmail-incubator-harmony-dev-archive@incubator.apache.org Received: (qmail 48236 invoked by uid 500); 12 Apr 2006 13:45:00 -0000 Mailing-List: contact harmony-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: harmony-dev@incubator.apache.org Delivered-To: mailing list harmony-dev@incubator.apache.org Received: (qmail 48225 invoked by uid 99); 12 Apr 2006 13:45:00 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 12 Apr 2006 06:45:00 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of anton.avtamonov@gmail.com designates 64.233.162.198 as permitted sender) Received: from [64.233.162.198] (HELO zproxy.gmail.com) (64.233.162.198) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 12 Apr 2006 06:44:59 -0700 Received: by zproxy.gmail.com with SMTP id 13so1287494nzp for ; Wed, 12 Apr 2006 06:44:39 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=GV9/OZT24fmTjcqgqPwOOY4Wqyt/4Xwk3MtkgVjG4tEEjLVKwlrx/r13RXPAkw6oVPfowJLxmfcM7CeVt2ge5Oh5UpbvWmmKVh+EG9xq5zBaJgnxt5zMgk2gOcDt18030smmQ1bjLD961TGbvyZzMqXEfmU7br9E7fntHmeGC4k= Received: by 10.64.142.15 with SMTP id p15mr276553qbd; Wed, 12 Apr 2006 06:44:38 -0700 (PDT) Received: by 10.64.250.16 with HTTP; Wed, 12 Apr 2006 06:44:38 -0700 (PDT) Message-ID: <46d21a9a0604120644r69ffef72sf2fb62bb8676e41f@mail.gmail.com> Date: Wed, 12 Apr 2006 17:44:38 +0400 From: "Anton Avtamonov" To: harmony-dev@incubator.apache.org, "Leo Simons" Subject: Re: Long,long testcase name... In-Reply-To: <20060412133609.GE67110@bali.sjc.webweaving.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <5c8e69f0604101940q6843d941n7ad41b05d78d3617@mail.gmail.com> <443B1CF7.5060003@pobox.com> <443B28A9.1070103@gmail.com> <443B809E.1010804@pobox.com> <443CCC5C.9000803@gmail.com> <443CED6D.4070606@pobox.com> <4d0b24970604120556w6b825556k88231b24407d80f2@mail.gmail.com> <906dd82e0604120609q52f2080i3d6a80e0e16249ba@mail.gmail.com> <20060412133609.GE67110@bali.sjc.webweaving.org> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N On 4/12/06, Leo Simons wrote: > On Wed, Apr 12, 2006 at 08:09:41PM +0700, Mikhail Loenko wrote: > > 2006/4/12, Andrew Zhang : > > > Hello, geir, > > > Let's consider the case you mentioned. > > > I totally agree that "testRequestPasswordAuthentication1" is a BAD na= me, > > > > Why? [SNIP] > > So you end up with names such as > > testRequestPasswordAuthenticationThrowsAnExceptionOnNullArguments > > or > > testRequestPasswordAuthenticationAcceptsSimpleJohnDoeParameters > > they are painful to type, but less painful than typing javadocs, and more > likely to get read than javadocs, and likely to get read a lot more than > written. Furthermore, if you have camel case searching, you can search fo= r > tRPA and get all the relevant bits. Hi Leo, What are you talking about is excellent when you have one method to test, but need to cover several scenarios. You don't want to have them together in one test to keep all scenarios clear, right? I also do in the similar way with minor deviation: I would prefer testRequestPasswordAuthentication_ThrowsAnExceptionOnNullArguments - underscore between method name and test intention. However such approach doesn't work when you really have several same-named methods with different params. You have to test similar scenarios, but with different methods... Please correct me if I got it wrong. Wishes, -- Anton Avtamonov, Intel Middleware Products Division --------------------------------------------------------------------- Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org For additional commands, e-mail: harmony-dev-help@incubator.apache.org