Program: 160991
Project: 160991
Buggy source:
@Test public void testSplitFileWithErrorsAdded() throws Exception {
  bootstrap.setDumpFileLocation(applicationContext.getResource("String_Node_Str").getURI().getPath());
  final String bootstrapLoadResults=bootstrap.bootstrap();
  assertThat(bootstrapLoadResults,containsString("String_Node_Str"));
  final Database bootstrapLoad=new Database(whoisTemplate);
  final String additionalLoadResults=bootstrap.loadTextDump(new String[]{applicationContext.getResource("String_Node_Str").getURI().getPath()});
  assertThat(additionalLoadResults,containsString("String_Node_Str"));
  assertThat(additionalLoadResults,containsString("String_Node_Str" + "String_Node_Str"));
  assertThat(additionalLoadResults,containsString("String_Node_Str"));
  final Database additionalLoad=new Database(whoisTemplate);
  System.out.println("String_Node_Str" + additionalLoad);
  assertThat(additionalLoad.getTable("String_Node_Str"),hasSize(10));
  assertThat(additionalLoad.getTable("String_Node_Str"),hasSize(5));
  assertThat(additionalLoad.getTable("String_Node_Str"),hasSize(5));
  assertThat(additionalLoad.getTable("String_Node_Str"),hasSize(2));
  assertThat(additionalLoad.getTable("String_Node_Str"),hasSize(2));
  assertThat(additionalLoad.getTable("String_Node_Str"),hasSize(3));
  final DatabaseDiff diff=Database.diff(bootstrapLoad,additionalLoad);
  System.out.println("String_Node_Str" + diff);
  assertThat(diff.getRemoved().getAll(),hasSize(0));
  assertThat(diff.getModified().getAll(),hasSize(0));
  assertThat(diff.getAdded().getTable("String_Node_Str"),hasSize(2));
  assertThat(diff.getAdded().getTable("String_Node_Str"),hasSize(1));
  assertThat(diff.getAdded().getTable("String_Node_Str"),hasSize(1));
}

Fixed version (ground truth):
@Test public void testSplitFileWithErrorsAdded() throws Exception {
  bootstrap.setDumpFileLocation(applicationContext.getResource("String_Node_Str").getURI().getPath());
  final String bootstrapLoadResults=bootstrap.bootstrap();
  assertThat(bootstrapLoadResults,containsString("String_Node_Str"));
  final Database bootstrapLoad=new Database(whoisTemplate);
  final String additionalLoadResults=bootstrap.loadTextDump(new String[]{applicationContext.getResource("String_Node_Str").getURI().getPath()});
  assertThat(additionalLoadResults,containsString("String_Node_Str"));
  assertThat(additionalLoadResults,containsString("String_Node_Str" + "String_Node_Str"));
  assertThat(additionalLoadResults,containsString("String_Node_Str"));
  final Database additionalLoad=new Database(whoisTemplate);
  assertThat(additionalLoad.getTable("String_Node_Str"),hasSize(10));
  assertThat(additionalLoad.getTable("String_Node_Str"),hasSize(5));
  assertThat(additionalLoad.getTable("String_Node_Str"),hasSize(5));
  assertThat(additionalLoad.getTable("String_Node_Str"),hasSize(2));
  assertThat(additionalLoad.getTable("String_Node_Str"),hasSize(2));
  assertThat(additionalLoad.getTable("String_Node_Str"),hasSize(3));
  final DatabaseDiff diff=Database.diff(bootstrapLoad,additionalLoad);
  assertThat(diff.getRemoved().getAll(),hasSize(0));
  assertThat(diff.getModified().getAll(),hasSize(0));
  assertThat(diff.getAdded().getTable("String_Node_Str"),hasSize(2));
  assertThat(diff.getAdded().getTable("String_Node_Str"),hasSize(1));
  assertThat(diff.getAdded().getTable("String_Node_Str"),hasSize(1));
}