harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Zhang (JIRA)" <j...@apache.org>
Subject [jira] Created: (HARMONY-842) [classlib][nio] Refine o.a.h.tests.java.nio.channels.DatagramChannelTest
Date Wed, 12 Jul 2006 03:46:30 GMT
[classlib][nio] Refine o.a.h.tests.java.nio.channels.DatagramChannelTest

         Key: HARMONY-842
         URL: http://issues.apache.org/jira/browse/HARMONY-842
     Project: Harmony
        Type: Test

  Components: Classlib  
    Reporter: Andrew Zhang

There are several problems in o.a.h.tests.java.nio.channels.DatagramChannelTest:

1. System.err/out should not appear 

2. Many tests may not set SecurityManager in some cases, which has side-effect.

3. Many useless assertEquals, consider following code:
        try {
            assertEquals(0, this.channel1.send(writeBuf, null));
            fail("Should throw NPE");
        } catch (NullPointerException e) {
            // correct
4. Duplicate test

I'll upload a patch to fix these problems.


Best regards,

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:

View raw message