forked from I2P_Developers/i2p.i2p
test net.i2p.util.Addresses::isDeprecated
This commit is contained in:
@@ -57,4 +57,13 @@ public class AddressesTest {
|
||||
byte[] address = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1};
|
||||
assertFalse(Addresses.isDynamic((Inet6Address) Inet6Address.getByAddress(host, address)));
|
||||
}
|
||||
/**
|
||||
* Should always return false when the address isn't in the cache
|
||||
*/
|
||||
@Test
|
||||
public void isDeprecated() throws UnknownHostException {
|
||||
String host = "localhost";
|
||||
byte[] address = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1};
|
||||
assertFalse(Addresses.isDeprecated((Inet6Address) Inet6Address.getByAddress(host, address)));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user