Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 15206 invoked from network); 14 Mar 2007 07:57:30 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 14 Mar 2007 07:57:30 -0000 Received: (qmail 16669 invoked by uid 500); 14 Mar 2007 07:57:38 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 16651 invoked by uid 500); 14 Mar 2007 07:57:38 -0000 Mailing-List: contact commits-help@harmony.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@harmony.apache.org Delivered-To: mailing list commits@harmony.apache.org Received: (qmail 16642 invoked by uid 99); 14 Mar 2007 07:57:38 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Mar 2007 00:57:38 -0700 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; Wed, 14 Mar 2007 00:57:29 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 68F95714072 for ; Wed, 14 Mar 2007 00:57:09 -0700 (PDT) Message-ID: <5315404.1173859029424.JavaMail.jira@brutus> Date: Wed, 14 Mar 2007 00:57:09 -0700 (PDT) From: "Sean Qiu (JIRA)" To: commits@harmony.apache.org Subject: [jira] Commented: (HARMONY-3353) [classlib][test] Refactor test for java.io.FileNotFoundException's constructor In-Reply-To: <16983158.1173671109473.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/HARMONY-3353?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12480681 ] Sean Qiu commented on HARMONY-3353: ----------------------------------- It works fine. Thank you, Richard. > [classlib][test] Refactor test for java.io.FileNotFoundException's constructor > ------------------------------------------------------------------------------ > > Key: HARMONY-3353 > URL: https://issues.apache.org/jira/browse/HARMONY-3353 > Project: Harmony > Issue Type: Improvement > Components: Classlib > Environment: Ubuntu > Reporter: Sean Qiu > Assigned To: Richard Liang > Attachments: luni-FileNotFountExceptionTest.patch > > > The two tests for different constructor are the same. > Refactor the test for FileNotFoundException(). > >>>>>>> Test >>>>>>>> > public void test_Constructor() { > // Test for method java.io.FileNotFoundException() > try { > if (true) { > throw new FileNotFoundException(); > } > fail("Should throw FileNotFoundException"); > } catch (java.io.FileNotFoundException e) { > // Expected > } > } -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.