示例#1
0
 @Test
 public void testIpLocalHostValido() {
   assertTrue(ValidationUtil.isValidInetAddress("127.0.0.1"));
 }
示例#2
0
 @Test
 public void testIpInvalido() {
   assertFalse(ValidationUtil.isValidInetAddress("0.0.1"));
 }