mirror of
https://github.com/jlengrand/picocli.git
synced 2026-03-10 08:41:17 +00:00
Use .invalid domain name for InetAddress test
Some DNS setups such as ISP "DNS hijacking" will return an IP address for garbage names. Using the ".invalid" domain specified in RFC 6761 makes the test more reliable.
This commit is contained in:
committed by
Remko Popma
parent
52e8fd0a0f
commit
b07a97da79
@@ -514,7 +514,7 @@ public class TypeConversionTest {
|
||||
}
|
||||
@Test
|
||||
public void testInetAddressConvertersInvalidError() {
|
||||
parseInvalidValue("-InetAddress", "%$::a?*!a", "java.net.UnknownHostException: ");
|
||||
parseInvalidValue("-InetAddress", "test.invalid", "java.net.UnknownHostException: ");
|
||||
}
|
||||
@Test
|
||||
public void testUUIDConvertersInvalidError() {
|
||||
|
||||
Reference in New Issue
Block a user