Closed zippy1981 closed 11 years ago
Ok using reflection so the private macaddress() gets called in the test.
As far as isVirtual here is my linux-wired-ethernet-centric explanation.
Tested and it looks good, now merged in. Thanks again for pushing these changes back in, I would be curious to hear about your project
On Windows (at least my Windows 7 Enterprise laptop) the first interface returned by NetworkInterface.getNetworkInterfaces().neextElement() is the loopback interface which has no mac address. Therefore, I added a little bit or robustness to the function that got the first mac address. Since its only called once it should not be a performance issue.
I ran the unit tests on windows and ubuntu 13.04.