Update test to be more specific

This commit is contained in:
developerDiv 2020-06-28 21:28:10 +01:00
parent bb2060ee78
commit 80b55f35a5
1 changed files with 2 additions and 2 deletions

View File

@ -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);
}
}