Return-Path: X-Original-To: apmail-db-derby-dev-archive@www.apache.org Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id CE1AEDEAA for ; Mon, 6 Aug 2012 23:49:08 +0000 (UTC) Received: (qmail 16842 invoked by uid 500); 6 Aug 2012 23:49:08 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 16822 invoked by uid 500); 6 Aug 2012 23:49:08 -0000 Mailing-List: contact derby-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 16813 invoked by uid 99); 6 Aug 2012 23:49:08 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Aug 2012 23:49:08 +0000 X-ASF-Spam-Status: No, hits=0.7 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [98.139.52.202] (HELO nm5.bullet.mail.ac4.yahoo.com) (98.139.52.202) by apache.org (qpsmtpd/0.29) with SMTP; Mon, 06 Aug 2012 23:48:59 +0000 Received: from [98.139.52.188] by nm5.bullet.mail.ac4.yahoo.com with NNFMP; 06 Aug 2012 23:48:38 -0000 Received: from [209.191.108.96] by tm1.bullet.mail.ac4.yahoo.com with NNFMP; 06 Aug 2012 23:48:38 -0000 Received: from [66.94.237.109] by t3.bullet.mud.yahoo.com with NNFMP; 06 Aug 2012 23:48:38 -0000 Received: from [127.0.0.1] by omp1014.access.mail.mud.yahoo.com with NNFMP; 06 Aug 2012 23:48:38 -0000 X-Yahoo-Newman-Id: 88742.51852.bm@omp1014.access.mail.mud.yahoo.com Received: (qmail 5229 invoked from network); 6 Aug 2012 23:48:37 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=sbcglobal.net; h=DKIM-Signature:X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:Received:Message-ID:Date:From:User-Agent:MIME-Version:To:Subject:References:In-Reply-To:Content-Type:Content-Transfer-Encoding; b=vCQIMYnG/gXkGWw7MWs5AsrnJHe/nRVP0rq3n449XiN8l1rgJP4zMbv0Ia3LcBIqku9H/1R72MZqdxq0TZFSDeJpLnvUj01ZxYiXyr5DqAXkfIxkQuWfIvo3jp6+czpxQEfkrSkM+n5XGIvZHAeJoZ7H4OFInOwrTJoH+5cxSxQ= ; DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sbcglobal.net; s=s1024; t=1344296917; bh=PYXmGxuEk29cCQ9M8rOLU79oFBAlSo1ZOHRV11vHU8M=; h=X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:Received:Message-ID:Date:From:User-Agent:MIME-Version:To:Subject:References:In-Reply-To:Content-Type:Content-Transfer-Encoding; b=knbErABcGNYyUCjnx55l3VTxMbpKlYi8gPse2B/vPANO0aTgkMfjzrGO/wsIHpzRN2gG4kskQDTG28b2D6MVxf/eCD+9ad6WSJLKpW2IMHrueRAo8yIqa5bsPuXVRLzos+IpJmgWZesrG+9CnMJnIXYptZB5j2aQYiucdS9/3bk= X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: zX2zTOoVM1mR5udLaTt0LwO2bjKeVGj1fCbkbxdND3J57_v aZBFIrzkOai9Sh44bbGqrHPvAG1SLQVB4z0FJxVNadpl6cXAH4zcnRU9LQDX Ty.H15ElD1yTKck.M1k1Ls40Rbo.1T1y8Aw.CYC2CvvaR_R41HMTpw.xB2Zq qEKS52quLlNzcPco06Qx6ZD_Blr19cy7s8Kv4GWGmKBN3aa33BCYhVVdIUDP q3xvp.EoShVwLSkjCNShaNQicQIXFy37sDLSTSXidiQiDdP9fN1Ft426flzT 6_5xJ4H6uDZhPBWld5qncWearrBtMuL11BolAv0CqCsJtrUI2OPDyasTMLRG lAHQVgQEWvuW7b1WLxC3nGMlRjDoSEqneqH95igFKBTr8OjUrCofUPK01bi6 ATiuL_LKPgYIHjpGEI5kVCgbRwBVeUN7h13t5VfdNxIgJAdBByYw7eRhLFqS EuDRWumCYTRneanzGYuwmLQDk_Vn6mZyVgaNr431AQ90Btk0jJBABNZks3LQ ctUh2tfV6Pn2CW1bBn0u7j1gWsNnZVGbGcqIP.JpYRvGOxVugNmcPr4Miikf tYT0SaKt2CuDgOjC5LsVguNpDUWedB4kUXbq1mV_ppQwfkjWe2n5SsBmF1ag mv11kwnt1f8hkEH9J1d6PeIN1BiwRWLKbUamXsZ4Re.HZ1XpqRi87zsCp0up gyPwXZib2K6pmeD1.OO6dfql95dv1kju7urAKN1m4T5vCVQ-- X-Yahoo-SMTP: fBd8VESswBBwVkX.d9lIdXduzED_6kJxUAzIjM21tL._95FbORG0yg-- Received: from [192.168.1.71] (kmarsdenderby@108.231.78.45 with plain) by smtp113.sbc.mail.ne1.yahoo.com with SMTP; 06 Aug 2012 16:48:37 -0700 PDT Message-ID: <502057A8.7090306@sbcglobal.net> Date: Mon, 06 Aug 2012 16:47:52 -0700 From: Katherine Marsden User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:13.0) Gecko/20120614 Thunderbird/13.0.1 MIME-Version: 1.0 To: derby-dev@db.apache.org Subject: Re: Coverage of package impl.io References: <50204BDF.6040708@sbcglobal.net> In-Reply-To: <50204BDF.6040708@sbcglobal.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit On 8/6/2012 3:57 PM, Katherine Marsden wrote: > On 8/2/2012 6:40 AM, siddharth srivastava wrote: >> Hi >> >> While looking at this package, I was able to derive some reference >> from util.corruptio package and its subsequent usage. >> What would be a recommended approach for improving the test coverage >> of this class. >> >> I have started with URLFile and DirStorageFactory, out of which >> DirStorageFactory is already very well covered. >> It would be helpful to get recommendations for writing tests for this >> package. > So looking at URLFile and URLStorageFactory these seem to be for a > http(s) protocol connection, which sounds great but I don't > immediately see what protocol I would use. For example, I have a > toursdb database at > http://people.apache.org/~kmarsden/toursdb > > What URL would I use to access this? > > I don't see anything in the doc. I wonder if this is something that > someone started working on but never finished? > > > I thought this sounded familiar. The http sub protocol came up in this thread. http://old.nabble.com/Bug-with-http-sub-protocol--td31889839.html which concluded two things. 1) the http/https sub protocols are not documented anywhere. 2) I can connect to my database with this odd url: ij> connect 'jdbc:derby:https:http://people.apache.org/~kmarsden/toursdb'; The user was encouraged to open an issue but did not as far as I can tell. I filed an issue DERBY-5895 to fix/test/document the feature. Subtasks can be created for each. In terms of testing, I wondering what would be best. Should we have properties like we do for the ldap testing to specify the server etc or is there an easy way to integrate a single threaded web server into the JUnit tests? Kathey