Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 7596 invoked from network); 17 Feb 2007 04:31:26 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 17 Feb 2007 04:31:26 -0000 Received: (qmail 66541 invoked by uid 500); 17 Feb 2007 04:31:34 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 66511 invoked by uid 500); 17 Feb 2007 04:31:34 -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 66502 invoked by uid 99); 17 Feb 2007 04:31:34 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 16 Feb 2007 20:31:34 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 16 Feb 2007 20:31:25 -0800 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 897597141E5 for ; Fri, 16 Feb 2007 20:31:05 -0800 (PST) Message-ID: <29093359.1171686665522.JavaMail.jira@brutus> Date: Fri, 16 Feb 2007 20:31:05 -0800 (PST) From: "Andrew McIntyre (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Updated: (DERBY-2342) convert importExport.java to junit In-Reply-To: <26997154.1171590065562.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/DERBY-2342?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Andrew McIntyre updated DERBY-2342: ----------------------------------- Attachment: derby-2342-v3.diff Thanks very much for the review, Suresh! Attaching a patch which incorporates most of your suggestions. I've used SupportFilesSetup.getReadWrite() to get the Files to pass to assertEquals(File,File). For the other cases where the directory is hardcoded, we need to pass a String to the import or export procedure. I could get a File or URL with getReadWrite or getReadWriteURL, but then I'd either have to get the String representation of the File or URL and do some manipulation of that String to get it into the format that the import/export procedures are expecting. I'm not sure that it is worth the trouble to do that when the location of the support file directories is unlikely to change. Patch is still not quite ready to commit, though, as I'm seeing some failures on jdk16 in client mode. > convert importExport.java to junit > ---------------------------------- > > Key: DERBY-2342 > URL: https://issues.apache.org/jira/browse/DERBY-2342 > Project: Derby > Issue Type: Improvement > Components: Tools > Affects Versions: 10.3.0.0 > Reporter: Andrew McIntyre > Assigned To: Andrew McIntyre > Fix For: 10.3.0.0 > > Attachments: derby-2342-v1.diff, derby-2342-v1.stat, derby-2342-v2.diff, derby-2342-v3.diff > > > Convert org.apache.derbyTesting.functionTests.tests.tools.importExport to junit. New test is called ImportExportTest. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.