You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "George Harley (JIRA)" <ji...@apache.org> on 2006/03/24 16:19:26 UTC

[jira] Created: (HARMONY-247) Errors in tests.api.java.net.NetworkInterfaceTest depending on network status of test machine

Errors in tests.api.java.net.NetworkInterfaceTest depending on network status of test machine
---------------------------------------------------------------------------------------------

         Key: HARMONY-247
         URL: http://issues.apache.org/jira/browse/HARMONY-247
     Project: Harmony
        Type: Improvement
  Components: Classlib  
 Environment: All
    Reporter: George Harley


Seeing java.util.NoSuchElementException occurring in the setUp() method of this test case with the result that all test methods were errors. The problem seems to be that the setup code that sets instance members is not checking the NetworkInterface instances returned from the static getNetworkInterfaces() method to see if they actually have an InetAddress bound to them. On my laptop the setup code chose to work with the NetworkInterface instance corresponding to my wireless adapter - which was not currently active.

Best regards, 
George



-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Closed: (HARMONY-247) Errors in tests.api.java.net.NetworkInterfaceTest depending on network status of test machine

Posted by "George Harley (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/HARMONY-247?page=all ]
     
George Harley closed HARMONY-247:
---------------------------------


Verified by raiser. 

> Errors in tests.api.java.net.NetworkInterfaceTest depending on network status of test machine
> ---------------------------------------------------------------------------------------------
>
>          Key: HARMONY-247
>          URL: http://issues.apache.org/jira/browse/HARMONY-247
>      Project: Harmony
>         Type: Improvement

>   Components: Classlib
>  Environment: All
>     Reporter: George Harley
>     Assignee: George Harley
>  Attachments: Harmony-247.txt
>
> Seeing java.util.NoSuchElementException occurring in the setUp() method of this test case with the result that all test methods were errors. The problem seems to be that the setup code that sets instance members is not checking the NetworkInterface instances returned from the static getNetworkInterfaces() method to see if they actually have an InetAddress bound to them. On my laptop the setup code chose to work with the NetworkInterface instance corresponding to my wireless adapter - which was not currently active.
> Best regards, 
> George

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Assigned: (HARMONY-247) Errors in tests.api.java.net.NetworkInterfaceTest depending on network status of test machine

Posted by "George Harley (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/HARMONY-247?page=all ]

George Harley reassigned HARMONY-247:
-------------------------------------

    Assign To: George Harley

> Errors in tests.api.java.net.NetworkInterfaceTest depending on network status of test machine
> ---------------------------------------------------------------------------------------------
>
>          Key: HARMONY-247
>          URL: http://issues.apache.org/jira/browse/HARMONY-247
>      Project: Harmony
>         Type: Improvement

>   Components: Classlib
>  Environment: All
>     Reporter: George Harley
>     Assignee: George Harley
>  Attachments: Harmony-247.txt
>
> Seeing java.util.NoSuchElementException occurring in the setUp() method of this test case with the result that all test methods were errors. The problem seems to be that the setup code that sets instance members is not checking the NetworkInterface instances returned from the static getNetworkInterfaces() method to see if they actually have an InetAddress bound to them. On my laptop the setup code chose to work with the NetworkInterface instance corresponding to my wireless adapter - which was not currently active.
> Best regards, 
> George

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Resolved: (HARMONY-247) Errors in tests.api.java.net.NetworkInterfaceTest depending on network status of test machine

Posted by "George Harley (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/HARMONY-247?page=all ]
     
George Harley resolved HARMONY-247:
-----------------------------------

    Resolution: Fixed

Changes committed in SVN revision 391289. 

> Errors in tests.api.java.net.NetworkInterfaceTest depending on network status of test machine
> ---------------------------------------------------------------------------------------------
>
>          Key: HARMONY-247
>          URL: http://issues.apache.org/jira/browse/HARMONY-247
>      Project: Harmony
>         Type: Improvement

>   Components: Classlib
>  Environment: All
>     Reporter: George Harley
>     Assignee: George Harley
>  Attachments: Harmony-247.txt
>
> Seeing java.util.NoSuchElementException occurring in the setUp() method of this test case with the result that all test methods were errors. The problem seems to be that the setup code that sets instance members is not checking the NetworkInterface instances returned from the static getNetworkInterfaces() method to see if they actually have an InetAddress bound to them. On my laptop the setup code chose to work with the NetworkInterface instance corresponding to my wireless adapter - which was not currently active.
> Best regards, 
> George

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Updated: (HARMONY-247) Errors in tests.api.java.net.NetworkInterfaceTest depending on network status of test machine

Posted by "George Harley (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/HARMONY-247?page=all ]

George Harley updated HARMONY-247:
----------------------------------

    Attachment: Harmony-247.txt

Patch for the test code. Picked off a few assertTrue(...., false) calls while I was in there.  

Best regards, 
George

> Errors in tests.api.java.net.NetworkInterfaceTest depending on network status of test machine
> ---------------------------------------------------------------------------------------------
>
>          Key: HARMONY-247
>          URL: http://issues.apache.org/jira/browse/HARMONY-247
>      Project: Harmony
>         Type: Improvement
>   Components: Classlib
>  Environment: All
>     Reporter: George Harley
>  Attachments: Harmony-247.txt
>
> Seeing java.util.NoSuchElementException occurring in the setUp() method of this test case with the result that all test methods were errors. The problem seems to be that the setup code that sets instance members is not checking the NetworkInterface instances returned from the static getNetworkInterfaces() method to see if they actually have an InetAddress bound to them. On my laptop the setup code chose to work with the NetworkInterface instance corresponding to my wireless adapter - which was not currently active.
> Best regards, 
> George

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira