Return-Path: Delivered-To: apmail-incubator-harmony-dev-archive@www.apache.org Received: (qmail 12142 invoked from network); 19 Jun 2006 11:20:16 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 19 Jun 2006 11:20:16 -0000 Received: (qmail 49792 invoked by uid 500); 19 Jun 2006 11:20:10 -0000 Delivered-To: apmail-incubator-harmony-dev-archive@incubator.apache.org Received: (qmail 49732 invoked by uid 500); 19 Jun 2006 11:20:09 -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 49717 invoked by uid 99); 19 Jun 2006 11:20:09 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 Jun 2006 04:20:09 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of ivavladimir@gmail.com designates 66.249.82.199 as permitted sender) Received: from [66.249.82.199] (HELO wx-out-0102.google.com) (66.249.82.199) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 Jun 2006 04:20:08 -0700 Received: by wx-out-0102.google.com with SMTP id s6so851588wxc for ; Mon, 19 Jun 2006 04:19:47 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type; b=g0kvgUcp6N1YzxZQoB6/0BfaSQX6FZsTaJzwI2eq3VPEm2R7+DvXohdESXT566SzByc4Esh8xtbRSi0WBK/+/9gmoE/UHBzWmGv9PTOcncEqZ7e+8LCG1MYIFH6egv1dq1GR3B+TXRc52E7MJJf/wmoOrlWI/JJfRRgq/tPFdtg= Received: by 10.70.46.14 with SMTP id t14mr8327996wxt; Mon, 19 Jun 2006 04:19:47 -0700 (PDT) Received: by 10.70.26.5 with HTTP; Mon, 19 Jun 2006 04:19:47 -0700 (PDT) Message-ID: <7273946b0606190419r3258874bs8f2fe15cb0add763@mail.gmail.com> Date: Mon, 19 Jun 2006 18:19:47 +0700 From: "Vladimir Ivanov" To: harmony-dev@incubator.apache.org Subject: [classlib][testing]resource files: location and usage MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_108722_7745336.1150715987480" X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N ------=_Part_108722_7745336.1150715987480 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline It would be good if the page http://incubator.apache.org/harmony/subcomponents/classlibrary/testing.htmldescribes also location, name convention and access model for resource files used for testing, specifically, for testing serialization. At the present moment test's resource files stored in "src/test/resources" directory in modules structure. Serialization data stored as "resources/" + "serialization/" + "" or "resources/" + "" + "/serialization/" with ".ser" or ".dat" extension. Other resource files are stored in "resources/" or in the "resources/" directory. I found two mechanisms of accessing resources in tests: 1) Get resource through ClassLoader.getResource("serialization/") 2) Get resource through reading file System.getProperty(RESOURCE_DIR + filename). Suggestion: 1) Ideal from my point of view variant: lets uniform access to resources throughout all tests (I can do it). 2) If it's not good idea, then, lets just describe technique of working with resources on testing conventions page to limit the number of access techniques to only two (I can do it). Thoughts? Thanks, Vladimir ------=_Part_108722_7745336.1150715987480--