Program: 37564
Project: 37564
Buggy source:
/** 
 * test validateDomainNameIsValidIdna.
 */
@Test public void testValidateDomainNameIsValidIdna(){
  for (  String domain : validArpaDomain) {
    assertTrue(DomainUtil.validateDomainNameIsValidIdna(domain));
  }
  for (  String domain : inValidArpaDomain) {
    assertFalse(DomainUtil.validateDomainNameIsValidIdna(domain));
  }
  assertTrue(DomainUtil.validateDomainNameIsValidIdna("String_Node_Str"));
  assertTrue(DomainUtil.validateDomainNameIsValidIdna("String_Node_Str"));
  assertTrue(DomainUtil.validateDomainNameIsValidIdna("String_Node_Str"));
  assertTrue(DomainUtil.validateDomainNameIsValidIdna("String_Node_Str"));
  assertFalse(DomainUtil.validateDomainNameIsValidIdna("String_Node_Str"));
  assertFalse(DomainUtil.validateDomainNameIsValidIdna("String_Node_Str"));
  assertFalse(DomainUtil.validateDomainNameIsValidIdna("String_Node_Str"));
  assertFalse(DomainUtil.validateDomainNameIsValidIdna("String_Node_Str"));
  assertFalse(DomainUtil.validateDomainNameIsValidIdna("String_Node_Str"));
  assertFalse(DomainUtil.validateDomainNameIsValidIdna("String_Node_Str"));
  assertFalse(DomainUtil.validateDomainNameIsValidIdna("String_Node_Str"));
  assertFalse(DomainUtil.validateDomainNameIsValidIdna(null));
  assertFalse(DomainUtil.validateDomainNameIsValidIdna("String_Node_Str"));
  assertFalse(DomainUtil.validateDomainNameIsValidIdna("String_Node_Str"));
  assertFalse(DomainUtil.validateDomainNameIsValidIdna("String_Node_Str"));
  assertFalse(DomainUtil.validateDomainNameIsValidIdna("String_Node_Str"));
  assertFalse(DomainUtil.validateDomainNameIsValidIdna("String_Node_Str"));
  assertFalse(DomainUtil.validateDomainNameIsValidIdna("String_Node_Str"));
  assertFalse(DomainUtil.validateDomainNameIsValidIdna("String_Node_Str"));
  assertFalse(DomainUtil.validateDomainNameIsValidIdna("String_Node_Str"));
  assertFalse(DomainUtil.validateDomainNameIsValidIdna("String_Node_Str"));
  assertTrue(DomainUtil.validateDomainNameIsValidIdna("String_Node_Str"));
  assertTrue(DomainUtil.validateDomainNameIsValidIdna(DomainUtil.decodeAndTrim("String_Node_Str")));
  assertTrue(DomainUtil.validateDomainNameIsValidIdna("String_Node_Str"));
  assertTrue(DomainUtil.validateDomainNameIsValidIdna("String_Node_Str"));
  assertFalse(DomainUtil.validateDomainNameIsValidIdna(DomainUtil.decodeAndTrim("String_Node_Str")));
  assertFalse(DomainUtil.validateDomainNameIsValidIdna("String_Node_Str"));
  assertFalse(DomainUtil.validateDomainNameIsValidIdna(DomainUtil.decodeAndTrim("String_Node_Str")));
  assertFalse(DomainUtil.validateDomainNameIsValidIdna("String_Node_Str"));
  assertFalse(DomainUtil.validateDomainNameIsValidIdna("String_Node_Str"));
  assertFalse(DomainUtil.validateDomainNameIsValidIdna(DomainUtil.decodeAndTrim("String_Node_Str")));
  assertFalse(DomainUtil.validateDomainNameIsValidIdna("String_Node_Str"));
}

Fixed version (ground truth):
/** 
 * test validateDomainNameIsValidIdna.
 */
@Test public void testValidateDomainNameIsValidIdna(){
  for (  String domain : validArpaDomain) {
    assertTrue(DomainUtil.validateDomainNameIsValidIdna(domain));
  }
  for (  String domain : inValidArpaDomain) {
    assertFalse(DomainUtil.validateDomainNameIsValidIdna(domain));
  }
  assertTrue(DomainUtil.validateDomainNameIsValidIdna("String_Node_Str"));
  assertTrue(DomainUtil.validateDomainNameIsValidIdna("String_Node_Str"));
  assertTrue(DomainUtil.validateDomainNameIsValidIdna("String_Node_Str"));
  assertTrue(DomainUtil.validateDomainNameIsValidIdna("String_Node_Str"));
  assertFalse(DomainUtil.validateDomainNameIsValidIdna("String_Node_Str"));
  assertFalse(DomainUtil.validateDomainNameIsValidIdna("String_Node_Str"));
  assertFalse(DomainUtil.validateDomainNameIsValidIdna("String_Node_Str"));
  assertFalse(DomainUtil.validateDomainNameIsValidIdna("String_Node_Str"));
  assertFalse(DomainUtil.validateDomainNameIsValidIdna("String_Node_Str"));
  assertFalse(DomainUtil.validateDomainNameIsValidIdna("String_Node_Str"));
  assertFalse(DomainUtil.validateDomainNameIsValidIdna("String_Node_Str"));
  assertFalse(DomainUtil.validateDomainNameIsValidIdna("String_Node_Str"));
  assertFalse(DomainUtil.validateDomainNameIsValidIdna("String_Node_Str"));
  assertFalse(DomainUtil.validateDomainNameIsValidIdna(null));
  assertFalse(DomainUtil.validateDomainNameIsValidIdna("String_Node_Str"));
  assertFalse(DomainUtil.validateDomainNameIsValidIdna("String_Node_Str"));
  assertFalse(DomainUtil.validateDomainNameIsValidIdna("String_Node_Str"));
  assertFalse(DomainUtil.validateDomainNameIsValidIdna("String_Node_Str"));
  assertFalse(DomainUtil.validateDomainNameIsValidIdna("String_Node_Str"));
  assertFalse(DomainUtil.validateDomainNameIsValidIdna("String_Node_Str"));
  assertFalse(DomainUtil.validateDomainNameIsValidIdna("String_Node_Str"));
  assertFalse(DomainUtil.validateDomainNameIsValidIdna("String_Node_Str"));
  assertFalse(DomainUtil.validateDomainNameIsValidIdna("String_Node_Str"));
  assertTrue(DomainUtil.validateDomainNameIsValidIdna(DomainUtil.decodeAndTrimAndReplaceAsciiToLowercase("String_Node_Str")));
  assertTrue(DomainUtil.validateDomainNameIsValidIdna("String_Node_Str"));
  assertTrue(DomainUtil.validateDomainNameIsValidIdna("String_Node_Str"));
  assertTrue(DomainUtil.validateDomainNameIsValidIdna("String_Node_Str"));
  assertTrue(DomainUtil.validateDomainNameIsValidIdna("String_Node_Str"));
  assertTrue(DomainUtil.validateDomainNameIsValidIdna(DomainUtil.decodeAndTrimAndReplaceAsciiToLowercase("String_Node_Str")));
  assertTrue(DomainUtil.validateDomainNameIsValidIdna("String_Node_Str"));
  assertTrue(DomainUtil.validateDomainNameIsValidIdna("String_Node_Str"));
  assertFalse(DomainUtil.validateDomainNameIsValidIdna(DomainUtil.decodeAndTrimAndReplaceAsciiToLowercase("String_Node_Str")));
  assertFalse(DomainUtil.validateDomainNameIsValidIdna("String_Node_Str"));
  assertFalse(DomainUtil.validateDomainNameIsValidIdna(DomainUtil.decodeAndTrimAndReplaceAsciiToLowercase("String_Node_Str")));
  assertFalse(DomainUtil.validateDomainNameIsValidIdna("String_Node_Str"));
  assertFalse(DomainUtil.validateDomainNameIsValidIdna("String_Node_Str"));
  assertFalse(DomainUtil.validateDomainNameIsValidIdna(DomainUtil.decodeAndTrimAndReplaceAsciiToLowercase("String_Node_Str")));
  assertFalse(DomainUtil.validateDomainNameIsValidIdna("String_Node_Str"));
}