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] Created: (HARMONY-3354) [classlib][test] Refactor test for java.io.NotActiveException's default constructor
Date Mon, 12 Mar 2007 07:36:09 GMT
[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
            Priority: Minor


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