Program: 7025
Project: 7025
Buggy source:
public void testUpdateTestCasesFromRunData() throws Exception {
  FileInfo plugin=new FileInfo("String_Node_Str",1234,false,false,null);
  List<FileInfo> files=Lists.newArrayList();
  FileInfo one=new FileInfo("String_Node_Str",1234,false,false,null);
  FileInfo two=new FileInfo("String_Node_Str",1234,false,false,null);
  FileInfo three=new FileInfo("String_Node_Str",1234,false,false,null);
  files.add(one);
  files.add(two);
  files.add(three);
  FileInfo testOne=new FileInfo("String_Node_Str",1234,false,false,null);
  FileInfo testTwo=new FileInfo("String_Node_Str",1234,false,false,null);
  FileInfo testThree=new FileInfo("String_Node_Str",1234,false,false,null);
  List<FileInfo> tests=Lists.newArrayList(testOne,testTwo,testThree);
  final JstdTestCaseFactory testCaseFactory=new JstdTestCaseFactory(Collections.<JstdTestCaseProcessor>emptySet(),Collections.<ResourceDependencyResolver>emptySet());
  final List<JstdTestCase> testCases=testCaseFactory.createCases(Collections.<FileInfo>emptyList(),files,tests);
  final Set<FileInfo> fileSet=new RunData(null,testCases,null).getFileSet();
  final Set<FileInfo> updatedFileSet=Sets.newLinkedHashSet();
  updatedFileSet.add(plugin);
  updatedFileSet.addAll(fileSet);
  List<JstdTestCase> updatedTestCases=testCaseFactory.updateCases(updatedFileSet,testCases);
  assertEquals(1,updatedTestCases.size());
  JstdTestCase jstdTestCase=updatedTestCases.get(0);
  assertEquals(tests,jstdTestCase.getTests());
  final List<FileInfo> expected=Lists.newArrayList(plugin);
  expected.addAll(files);
  assertEquals(expected,jstdTestCase.getDependencies());
}

Fixed version (ground truth):
public void testUpdateTestCasesFromRunData() throws Exception {
  FileInfo plugin=new FileInfo("String_Node_Str",1234,-1,false,false,null);
  List<FileInfo> files=Lists.newArrayList();
  FileInfo one=new FileInfo("String_Node_Str",1234,-1,false,false,null);
  FileInfo two=new FileInfo("String_Node_Str",1234,-1,false,false,null);
  FileInfo three=new FileInfo("String_Node_Str",1234,-1,false,false,null);
  files.add(one);
  files.add(two);
  files.add(three);
  FileInfo testOne=new FileInfo("String_Node_Str",1234,-1,false,false,null);
  FileInfo testTwo=new FileInfo("String_Node_Str",1234,-1,false,false,null);
  FileInfo testThree=new FileInfo("String_Node_Str",1234,-1,false,false,null);
  List<FileInfo> tests=Lists.newArrayList(testOne,testTwo,testThree);
  final JstdTestCaseFactory testCaseFactory=new JstdTestCaseFactory(Collections.<JstdTestCaseProcessor>emptySet(),Collections.<ResourceDependencyResolver>emptySet());
  final List<JstdTestCase> testCases=testCaseFactory.createCases(Collections.<FileInfo>emptyList(),files,tests);
  final Set<FileInfo> fileSet=new RunData(null,testCases,null).getFileSet();
  final Set<FileInfo> updatedFileSet=Sets.newLinkedHashSet();
  updatedFileSet.add(plugin);
  updatedFileSet.addAll(fileSet);
  List<JstdTestCase> updatedTestCases=testCaseFactory.updateCases(updatedFileSet,testCases);
  assertEquals(1,updatedTestCases.size());
  JstdTestCase jstdTestCase=updatedTestCases.get(0);
  assertEquals(tests,jstdTestCase.getTests());
  final List<FileInfo> expected=Lists.newArrayList(plugin);
  expected.addAll(files);
  assertEquals(expected,jstdTestCase.getDependencies());
}