Program: 100824
Project: 100824
Buggy source:
@Test public void testFileContent() throws Exception {
  final Properties properties=new Properties();
  properties.load(new FileInputStream(tempDir + File.separator + "String_Node_Str"));
  assertTrue(properties.containsKey("String_Node_Str" + File.separator + "String_Node_Str"));
  assertTrue(properties.containsKey("String_Node_Str" + File.separator + "String_Node_Str"));
  assertTrue(properties.containsKey("String_Node_Str" + File.separator + "String_Node_Str"));
  properties.load(new FileInputStream(tempDir + File.separator + "String_Node_Str"));
  final String[] expFullditamapandtopiclist={"String_Node_Str" + File.separator + "String_Node_Str","String_Node_Str" + File.separator + "String_Node_Str","String_Node_Str" + File.separator + "String_Node_Str","String_Node_Str" + File.separator + "String_Node_Str"};
  final String[] actFullditamapandtopiclist=properties.getProperty("String_Node_Str").split("String_Node_Str");
  Arrays.sort(expFullditamapandtopiclist);
  Arrays.sort(actFullditamapandtopiclist);
  assertArrayEquals(expFullditamapandtopiclist,actFullditamapandtopiclist);
  properties.load(new FileInputStream(tempDir + File.separator + "String_Node_Str"));
  assertTrue(properties.containsKey("String_Node_Str" + File.separator + "String_Node_Str"));
  assertTrue(properties.containsKey("String_Node_Str" + File.separator + "String_Node_Str"));
  assertTrue(properties.containsKey("String_Node_Str" + File.separator + "String_Node_Str"));
  assertTrue(properties.containsKey("String_Node_Str" + File.separator + "String_Node_Str"));
  properties.load(new FileInputStream(tempDir + File.separator + "String_Node_Str"));
  assertTrue(properties.containsKey("String_Node_Str" + File.separator + "String_Node_Str"));
  properties.load(new FileInputStream(tempDir + File.separator + "String_Node_Str"));
  assertTrue(properties.containsKey("String_Node_Str" + File.separator + "String_Node_Str"));
  assertTrue(properties.containsKey("String_Node_Str" + File.separator + "String_Node_Str"));
  assertTrue(properties.containsKey("String_Node_Str" + File.separator + "String_Node_Str"));
  properties.load(new FileInputStream(tempDir + File.separator + "String_Node_Str"));
  assertEquals("String_Node_Str" + File.separator + "String_Node_Str"+ File.separator+ "String_Node_Str",properties.getProperty("String_Node_Str"));
  assertEquals("String_Node_Str" + File.separator + "String_Node_Str"+ File.separator+ "String_Node_Str",properties.getProperty("String_Node_Str"));
  final DocumentBuilderFactory factory=DocumentBuilderFactory.newInstance();
  final DocumentBuilder builder=factory.newDocumentBuilder();
  final Document document=builder.parse(new File(tempDir + File.separator + "String_Node_Str"));
  final Element elem=document.getDocumentElement();
  final NodeList nodeList=elem.getElementsByTagName("String_Node_Str");
  final String[] keys={"String_Node_Str","String_Node_Str"};
  final String[] href={"String_Node_Str" + File.separator + "String_Node_Str","String_Node_Str" + File.separator + "String_Node_Str"};
  final String[] source={"String_Node_Str" + File.separator + "String_Node_Str","String_Node_Str" + File.separator + "String_Node_Str"};
  for (int i=0; i < nodeList.getLength(); i++) {
    assertEquals(keys[i],((Element)nodeList.item(i)).getAttribute("String_Node_Str"));
    assertEquals(href[i],((Element)nodeList.item(i)).getAttribute("String_Node_Str"));
    assertEquals(source[i],((Element)nodeList.item(i)).getAttribute("String_Node_Str"));
  }
  properties.load(new FileInputStream(tempDir + File.separator + "String_Node_Str"));
  assertTrue(properties.containsKey("String_Node_Str" + File.separator + "String_Node_Str"));
  properties.load(new FileInputStream(tempDir + File.separator + "String_Node_Str"));
  assertTrue(properties.containsKey("String_Node_Str" + File.separator + "String_Node_Str"));
  assertTrue(properties.containsKey("String_Node_Str" + File.separator + "String_Node_Str"));
  assertTrue(properties.containsKey("String_Node_Str" + File.separator + "String_Node_Str"));
  properties.load(new FileInputStream(tempDir + File.separator + "String_Node_Str"));
  assertTrue(properties.containsKey("String_Node_Str" + File.separator + "String_Node_Str"));
}

Fixed version (ground truth):
@Test public void testFileContent() throws Exception {
  final List<String> canditopicsList=readLines(new File(tempDir,"String_Node_Str"));
  assertTrue(canditopicsList.contains("String_Node_Str" + UNIX_SEPARATOR + "String_Node_Str"));
  assertTrue(canditopicsList.contains("String_Node_Str" + UNIX_SEPARATOR + "String_Node_Str"));
  assertTrue(canditopicsList.contains("String_Node_Str" + UNIX_SEPARATOR + "String_Node_Str"));
  final Properties ditaProps=readProperties(new File(tempDir,"String_Node_Str"));
  final String[] expFullditamapandtopiclist={"String_Node_Str" + UNIX_SEPARATOR + "String_Node_Str","String_Node_Str" + UNIX_SEPARATOR + "String_Node_Str","String_Node_Str" + UNIX_SEPARATOR + "String_Node_Str","String_Node_Str" + UNIX_SEPARATOR + "String_Node_Str"};
  final String[] actFullditamapandtopiclist=ditaProps.getProperty("String_Node_Str").split("String_Node_Str");
  Arrays.sort(expFullditamapandtopiclist);
  Arrays.sort(actFullditamapandtopiclist);
  assertArrayEquals(expFullditamapandtopiclist,actFullditamapandtopiclist);
  final List<String> fullditamapandtopicList=readLines(new File(tempDir,"String_Node_Str"));
  assertTrue(fullditamapandtopicList.contains("String_Node_Str" + UNIX_SEPARATOR + "String_Node_Str"));
  assertTrue(fullditamapandtopicList.contains("String_Node_Str" + UNIX_SEPARATOR + "String_Node_Str"));
  assertTrue(fullditamapandtopicList.contains("String_Node_Str" + UNIX_SEPARATOR + "String_Node_Str"));
  assertTrue(fullditamapandtopicList.contains("String_Node_Str" + UNIX_SEPARATOR + "String_Node_Str"));
  final List<String> hrefditatopicList=readLines(new File(tempDir,"String_Node_Str"));
  assertTrue(hrefditatopicList.contains("String_Node_Str" + UNIX_SEPARATOR + "String_Node_Str"));
  final List<String> hreftargetsList=readLines(new File(tempDir,"String_Node_Str"));
  assertTrue(hreftargetsList.contains("String_Node_Str" + UNIX_SEPARATOR + "String_Node_Str"));
  assertTrue(hreftargetsList.contains("String_Node_Str" + UNIX_SEPARATOR + "String_Node_Str"));
  assertTrue(hreftargetsList.contains("String_Node_Str" + UNIX_SEPARATOR + "String_Node_Str"));
  final Properties keyProps=readProperties(new File(tempDir,"String_Node_Str"));
  assertEquals("String_Node_Str" + UNIX_SEPARATOR + "String_Node_Str"+ UNIX_SEPARATOR+ "String_Node_Str",keyProps.getProperty("String_Node_Str"));
  assertEquals("String_Node_Str" + UNIX_SEPARATOR + "String_Node_Str"+ UNIX_SEPARATOR+ "String_Node_Str",keyProps.getProperty("String_Node_Str"));
  final DocumentBuilderFactory factory=DocumentBuilderFactory.newInstance();
  final DocumentBuilder builder=factory.newDocumentBuilder();
  final Document document=builder.parse(new File(tempDir + File.separator + "String_Node_Str"));
  final Element elem=document.getDocumentElement();
  final NodeList nodeList=elem.getElementsByTagName("String_Node_Str");
  final String[] keys={"String_Node_Str","String_Node_Str"};
  final String[] href={"String_Node_Str" + UNIX_SEPARATOR + "String_Node_Str","String_Node_Str" + UNIX_SEPARATOR + "String_Node_Str"};
  final String[] source={"String_Node_Str" + UNIX_SEPARATOR + "String_Node_Str","String_Node_Str" + UNIX_SEPARATOR + "String_Node_Str"};
  for (int i=0; i < nodeList.getLength(); i++) {
    assertEquals(keys[i],((Element)nodeList.item(i)).getAttribute("String_Node_Str"));
    assertEquals(href[i],((Element)nodeList.item(i)).getAttribute("String_Node_Str"));
    assertEquals(source[i],((Element)nodeList.item(i)).getAttribute("String_Node_Str"));
  }
  final List<String> keyrefList=readLines(new File(tempDir,"String_Node_Str"));
  assertTrue(keyrefList.contains("String_Node_Str" + UNIX_SEPARATOR + "String_Node_Str"));
  final List<String> outditafilesList=readLines(new File(tempDir,"String_Node_Str"));
  assertTrue(outditafilesList.contains("String_Node_Str" + UNIX_SEPARATOR + "String_Node_Str"));
  assertTrue(outditafilesList.contains("String_Node_Str" + UNIX_SEPARATOR + "String_Node_Str"));
  assertTrue(outditafilesList.contains("String_Node_Str" + UNIX_SEPARATOR + "String_Node_Str"));
  final List<String> usrInputFileList=readLines(new File(tempDir,"String_Node_Str"));
  assertTrue(usrInputFileList.contains("String_Node_Str" + File.separator + "String_Node_Str"));
}