Return-Path: Delivered-To: apmail-incubator-harmony-dev-archive@www.apache.org Received: (qmail 18594 invoked from network); 30 Jun 2006 08:23:55 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 30 Jun 2006 08:23:55 -0000 Received: (qmail 65590 invoked by uid 500); 30 Jun 2006 08:23:50 -0000 Delivered-To: apmail-incubator-harmony-dev-archive@incubator.apache.org Received: (qmail 65552 invoked by uid 500); 30 Jun 2006 08:23:50 -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 65540 invoked by uid 99); 30 Jun 2006 08:23:50 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 30 Jun 2006 01:23:50 -0700 X-ASF-Spam-Status: No, hits=1.9 required=10.0 tests=DNS_FROM_RFC_ABUSE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: 202.81.18.152 is neither permitted nor denied by domain of firepure@gmail.com) Received: from [202.81.18.152] (HELO ausmtp04.au.ibm.com) (202.81.18.152) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 30 Jun 2006 01:23:49 -0700 Received: from sd0208e0.au.ibm.com (d23rh904.au.ibm.com [202.81.18.202]) by ausmtp04.au.ibm.com (8.13.6/8.13.5) with ESMTP id k5U8RqAV270706 for ; Fri, 30 Jun 2006 18:27:52 +1000 Received: from d23av04.au.ibm.com (d23av04.au.ibm.com [9.190.250.237]) by sd0208e0.au.ibm.com (8.12.10/NCO/VER6.8) with ESMTP id k5U8Qbj8218690 for ; Fri, 30 Jun 2006 18:26:44 +1000 Received: from d23av04.au.ibm.com (loopback [127.0.0.1]) by d23av04.au.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id k5U8N3u2026442 for ; Fri, 30 Jun 2006 18:23:03 +1000 Received: from d23m0011.cn.ibm.com ([9.181.32.74]) by d23av04.au.ibm.com (8.12.11.20060308/8.12.11) with ESMTP id k5U8MiZK025181 for ; Fri, 30 Jun 2006 18:23:02 +1000 Received: from [9.181.107.166] ([9.181.107.166]) by d23m0011.cn.ibm.com (Lotus Domino Release 6.5.5HF262) with ESMTP id 2006063016224635-4145 ; Fri, 30 Jun 2006 16:22:46 +0800 Message-ID: <44A4DECB.10809@gmail.com> Date: Fri, 30 Jun 2006 16:20:27 +0800 From: "Jimmy, Jing Lv" User-Agent: Thunderbird 1.5.0.4 (Windows/20060516) MIME-Version: 1.0 To: harmony-dev@incubator.apache.org Subject: Re: [classlib] trying new framework for testing serialization References: <6e47b64f0606200111s3e702238hcf6a7e49482bf991@mail.gmail.com> <44A4DAAA.1060708@gmail.com> In-Reply-To: <44A4DAAA.1060708@gmail.com> X-MIMETrack: Itemize by SMTP Server on D23M0011/23/M/IBM(Release 6.5.5HF262 | April 5, 2006) at 30/06/2006 16:22:46, Serialize by Router on D23M0011/23/M/IBM(Release 6.5.5HF262 | April 5, 2006) at 30/06/2006 16:23:03, Serialize complete at 30/06/2006 16:23:03 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=windows-1252; format=flowed X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Jimmy, Jing Lv wrote: > Hi Stepan: > > Seems the new framework for serialization has added to Harmony, I'm > trying it and find it interesting. However I have a few questions: > > 1. It is strange that SerializationTest is an abstract class extends > junit.framework.testcase, in this case I can either (a) extends > SerializationTest directly, implements getData() and run, it shall run > "testSelf" and "testGolden", but how to control more complex situation > in this way? or (b) write a test extends testcase, and use static > methods "verifySelf" and "verifyGolden" in SerializationTest as > Guidelines says, however I wonder why it extends testcase? > By reading old threads, I've aware that these two ways are both OK, but the Guidelines say nothing about it, so may you tell me some detail about it? Thanks! :) > 2. It is strange verifyGolden(test, object) has two parameter, but in > the example in the Guidelines says:" > public void testSerializationCompatibility() > throws Exception { > SerializationTest.verifyGolden(new SomeSerializableClass()); > }" something lost? > And I guess the first parameter is used only to parse the name of > resource file. If so, may it change the parameter to a String, or > something else? > > 3. The test needs ser-files, so it may be necessary to add a method to > create this file easily just like the old framework. I find a protected > method produceGoldenFiles(), is that used for it (why protected?)? This > may be necessary to guildance. > What's more, the ser-file must be end with ".ser", but in new framework, > I still find it uses ".dat" . And the path is "test/common/unit/..." but > in Harmony's Test Guildance tells:"/src/test/resources/serialization..." > > Your comments? Thanks! > -- Best Regards! Jimmy, Jing Lv China Software Development Lab, IBM --------------------------------------------------------------------- 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