Return-Path: Delivered-To: apmail-incubator-harmony-dev-archive@www.apache.org Received: (qmail 45300 invoked from network); 27 Mar 2006 03:33:10 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 27 Mar 2006 03:33:10 -0000 Received: (qmail 38156 invoked by uid 500); 27 Mar 2006 03:33:06 -0000 Delivered-To: apmail-incubator-harmony-dev-archive@incubator.apache.org Received: (qmail 38103 invoked by uid 500); 27 Mar 2006 03:33:06 -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 38092 invoked by uid 99); 27 Mar 2006 03:33:06 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 26 Mar 2006 19:33:06 -0800 X-ASF-Spam-Status: No, hits=1.3 required=10.0 tests=RCVD_IN_BL_SPAMCOP_NET,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of mloenko@gmail.com designates 64.233.182.187 as permitted sender) Received: from [64.233.182.187] (HELO nproxy.gmail.com) (64.233.182.187) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 26 Mar 2006 19:33:05 -0800 Received: by nproxy.gmail.com with SMTP id i2so757890nfe for ; Sun, 26 Mar 2006 19:32:44 -0800 (PST) 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=Mz/0e4vCvp0ax8cPz3BVu2IKSiq30BwnCTBa3ImGUyj2yijujWy82Z/7RFkBldCKz8PdtwiPG76k9u/pU70rr6UNPn0hObrlhfItiCdCSqP3JJNTfztp1/faWOl32S7xFN+JIP0yBLFAPhlRc1p32X6xeIynyMKFvB2no//JhH0= Received: by 10.49.40.13 with SMTP id s13mr1449771nfj; Sun, 26 Mar 2006 19:32:44 -0800 (PST) Received: by 10.49.6.5 with HTTP; Sun, 26 Mar 2006 19:32:44 -0800 (PST) Message-ID: <906dd82e0603261932gc0b252el@mail.gmail.com> Date: Mon, 27 Mar 2006 10:32:44 +0700 From: "Mikhail Loenko" To: harmony-dev@incubator.apache.org Subject: Re: Unit testing revisited In-Reply-To: <44273AEC.1050604@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <6e47b64f0603230200l3ebdbb76p289b1011bd1e76d4@mail.gmail.com> <442312BD.3010909@googlemail.com> <44232C6F.4050706@pobox.com> <44273AEC.1050604@gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hi Richard, > Why? IMHO, it's easier to write test cases through public API. And the > internals may possibly change, so if we write test cases directly for > the internals, our test cases will not be stable. One of examples might be: to test something trough public API you need a test of 1000 lines of code, but if you can access internals, 10 lines is enough Thanks, Mikhail