Update test to be more specific
This commit is contained in:
parent
bb2060ee78
commit
80b55f35a5
|
@ -7,7 +7,7 @@ import java.net.NetworkInterface;
|
|||
import java.net.SocketException;
|
||||
import java.net.UnknownHostException;
|
||||
|
||||
import static org.junit.Assert.assertNotNull;
|
||||
import static org.junit.Assert.assertEquals;
|
||||
|
||||
public class MacAddressUnitTest {
|
||||
|
||||
|
@ -16,6 +16,6 @@ public class MacAddressUnitTest {
|
|||
InetAddress localHost = InetAddress.getLocalHost();
|
||||
NetworkInterface ni = NetworkInterface.getByInetAddress(localHost);
|
||||
byte[] macAddress = ni.getHardwareAddress();
|
||||
assertNotNull(macAddress);
|
||||
assertEquals(6, macAddress.length);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue