@Test public void test_validDomains() { Assert.assertEquals(expected, DomainUtils.isValidDomainName(domain)); }
public static boolean isValidDomainName(String domainName) { Pattern p = Pattern.compile(DOMAIN_NAME_PATTERN); Matcher m = p.matcher(domainName); return m.matches(); }
DomainUtils { public static boolean isValidDomainName(String domainName) { Pattern p = Pattern.compile(DOMAIN_NAME_PATTERN); Matcher m = p.matcher(domainName); return m.matches(); } }
DomainUtils { public static boolean isValidDomainName(String domainName) { Pattern p = Pattern.compile(DOMAIN_NAME_PATTERN); Matcher m = p.matcher(domainName); return m.matches(); }  }
DomainUtils { public static boolean isValidDomainName(String domainName) { Pattern p = Pattern.compile(DOMAIN_NAME_PATTERN); Matcher m = p.matcher(domainName); return m.matches(); }  static boolean isValidDomainName(String domainName); }
DomainUtils { public static boolean isValidDomainName(String domainName) { Pattern p = Pattern.compile(DOMAIN_NAME_PATTERN); Matcher m = p.matcher(domainName); return m.matches(); }  static boolean isValidDomainName(String domainName);  }