@Test public void testValidate_2() throws Exception { String ip = ""; boolean result = IPAddressValidator.validate(ip); assertEquals(false, result); }
public static boolean validate(String ip){ pattern = Pattern.compile(IPADDRESS_PATTERN); matcher = pattern.matcher(ip); return matcher.matches(); }
IPAddressValidator { public static boolean validate(String ip){ pattern = Pattern.compile(IPADDRESS_PATTERN); matcher = pattern.matcher(ip); return matcher.matches(); } }
IPAddressValidator { public static boolean validate(String ip){ pattern = Pattern.compile(IPADDRESS_PATTERN); matcher = pattern.matcher(ip); return matcher.matches(); }  }
IPAddressValidator { public static boolean validate(String ip){ pattern = Pattern.compile(IPADDRESS_PATTERN); matcher = pattern.matcher(ip); return matcher.matches(); }  static boolean validate(String ip); }
IPAddressValidator { public static boolean validate(String ip){ pattern = Pattern.compile(IPADDRESS_PATTERN); matcher = pattern.matcher(ip); return matcher.matches(); }  static boolean validate(String ip);  }