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

[jira] Assigned: (HARMONY-3354) [classlib][test] Refactor test for java.io.NotActiveException's default constructor

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

Richard Liang reassigned HARMONY-3354:
--------------------------------------

    Assignee: Richard Liang

> [classlib][test] Refactor test for java.io.NotActiveException's default constructor
> -----------------------------------------------------------------------------------
>
>                 Key: HARMONY-3354
>                 URL: https://issues.apache.org/jira/browse/HARMONY-3354
>             Project: Harmony
>          Issue Type: Improvement
>          Components: Classlib
>         Environment: Ubuntu
>            Reporter: Sean Qiu
>         Assigned To: Richard Liang
>            Priority: Minor
>         Attachments: patch.txt
>
>
> The test for NotActiveException's default constructor is the same as the one takes String as it's parameter.
> So it , in fact, is not tested at all.
> Add the following test for the default constructor.
> >>>>>>>> Test >>>>>>>
>     public void test_Constructor() {
>         // Test for method java.io.NotActiveException()
>         try {
>             if (true) {
>                 throw new NotActiveException();
>             }
>             fail("Should throw NotActiveException.");
>         } catch (NotActiveException e) {
>             // Expected
>         }
>     }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.