You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Sean Qiu (JIRA)" <ji...@apache.org> on 2007/03/12 04:47:09 UTC

[jira] Updated: (HARMONY-3353) [classlib][test] Refactor test for java.io.FileNotFoundException's constructor

     [ https://issues.apache.org/jira/browse/HARMONY-3353?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sean Qiu updated HARMONY-3353:
------------------------------

    Attachment: luni-FileNotFountExceptionTest.patch

testcase for FileNotFountException

> [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
>         Environment: Ubuntu
>            Reporter: Sean Qiu
>         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.