Program: 92969
Project: 92969
Buggy source:
public void testParseFieldByIdFunctions(){
  JniEvent testEvent=prepareEventToTest();
  assertNotNull("String_Node_Str",testEvent.parseFieldById(0));
  testEvent.readNextEvent();
  assertNotNull("String_Node_Str",testEvent.parseFieldById(chosenPositionOfFieldsFirstEvent));
  assertEquals("String_Node_Str",contentOfFieldsFirstEvent,testEvent.parseFieldById(chosenPositionOfFieldsFirstEvent));
  assertEquals("String_Node_Str",contentOfFieldsFirstEvent,testEvent.parseFieldByName(chosenNameOfFieldsFirstEvent));
  testEvent.readNextEvent();
  assertNotNull("String_Node_Str",testEvent.parseFieldById(chosenPositionOfFieldsSecondEvent));
  assertEquals("String_Node_Str",contentOfFieldsSecondEvent,testEvent.parseFieldById(chosenPositionOfFieldsSecondEvent));
  assertEquals("String_Node_Str",contentOfFieldsSecondEvent,testEvent.parseFieldByName(chosenNameOfFieldsSecondEvent));
  testEvent.seekToTime(new JniTime(timestampToSeekTest1));
  testEvent.readNextEvent();
  assertNotNull("String_Node_Str",testEvent.parseFieldById(chosenPositionOfFieldsAfterSeekEvent));
  assertEquals("String_Node_Str",contentOfFieldsThirdEvent,testEvent.parseFieldById(chosenPositionOfFieldsAfterSeekEvent));
  assertEquals("String_Node_Str",contentOfFieldsThirdEvent,testEvent.parseFieldByName(chosenNameOfFieldsThirdEvent));
  testEvent.seekToTime(new JniTime(firstEventTimestamp));
  testEvent.readNextEvent();
  assertNotNull("String_Node_Str",testEvent.parseFieldById(chosenPositionOfFieldsFirstEvent));
  assertEquals("String_Node_Str",contentOfFieldsFirstEvent,testEvent.parseFieldById(chosenPositionOfFieldsFirstEvent));
  assertEquals("String_Node_Str",contentOfFieldsFirstEvent,testEvent.parseFieldByName(chosenNameOfFieldsFirstEvent));
}

Fixed version (ground truth):
public void testParseFieldByIdFunctions(){
  JniEvent testEvent=prepareEventToTest();
  assertNotNull("String_Node_Str",testEvent.parseFieldById(0));
  testEvent.readNextEvent();
  assertNotNull("String_Node_Str",testEvent.parseFieldById(chosenPositionOfFieldsFirstEvent));
  assertEquals("String_Node_Str",contentOfFieldsFirstEvent,testEvent.parseFieldById(chosenPositionOfFieldsFirstEvent));
  assertEquals("String_Node_Str",contentOfFieldsFirstEvent,testEvent.parseFieldByName(chosenNameOfFieldsFirstEvent));
  testEvent.readNextEvent();
  assertNotNull("String_Node_Str",testEvent.parseFieldById(chosenPositionOfFieldsSecondEvent));
  assertEquals("String_Node_Str",contentOfFieldsSecondEvent,testEvent.parseFieldById(chosenPositionOfFieldsSecondEvent).toString());
  assertEquals("String_Node_Str",contentOfFieldsSecondEvent,testEvent.parseFieldByName(chosenNameOfFieldsSecondEvent).toString());
  testEvent.seekToTime(new JniTime(timestampToSeekTest1));
  testEvent.readNextEvent();
  assertNotNull("String_Node_Str",testEvent.parseFieldById(chosenPositionOfFieldsAfterSeekEvent));
  assertEquals("String_Node_Str",contentOfFieldsThirdEvent,testEvent.parseFieldById(chosenPositionOfFieldsAfterSeekEvent));
  assertEquals("String_Node_Str",contentOfFieldsThirdEvent,testEvent.parseFieldByName(chosenNameOfFieldsThirdEvent));
  testEvent.seekToTime(new JniTime(firstEventTimestamp));
  testEvent.readNextEvent();
  assertNotNull("String_Node_Str",testEvent.parseFieldById(chosenPositionOfFieldsFirstEvent));
  assertEquals("String_Node_Str",contentOfFieldsFirstEvent,testEvent.parseFieldById(chosenPositionOfFieldsFirstEvent));
  assertEquals("String_Node_Str",contentOfFieldsFirstEvent,testEvent.parseFieldByName(chosenNameOfFieldsFirstEvent));
}