harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sean Qiu (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HARMONY-3354) [classlib][test] Refactor test for java.io.NotActiveException's default constructor
Date Wed, 14 Mar 2007 07:57:09 GMT

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

Sean Qiu commented on HARMONY-3354:
-----------------------------------

It works fine. 
Thank you, Richard.

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


Mime
View raw message