harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Richard Liang (JIRA)" <j...@apache.org>
Subject [jira] Assigned: (HARMONY-3353) [classlib][test] Refactor test for java.io.FileNotFoundException's constructor
Date Tue, 13 Mar 2007 02:46:09 GMT

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

Richard Liang reassigned HARMONY-3353:
--------------------------------------

    Assignee: Richard Liang

> [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.


Mime
View raw message