Program: 64996
Project: 64996
Buggy source:
/** 
 * This test sets properties, writes the design file and compares it with golden file.
 * @throws Exception if opening or saving design file failed.
 */
public void testWriter() throws Exception {
  LabelHandle labelHandle=getLabel();
  labelHandle.setProperty(Label.X_PROP,"String_Node_Str");
  labelHandle.setProperty(Label.HEIGHT_PROP,"String_Node_Str");
  labelHandle.setProperty(Label.STYLE_PROP,null);
  OdaDataSet dataSet=(OdaDataSet)design.findDataSet("String_Node_Str");
  assertNotNull(dataSet);
  labelHandle.setProperty(Label.DATA_SET_PROP,null);
  labelHandle.setProperty(Label.NAME_PROP,"String_Node_Str");
  ActionHandle action=labelHandle.getActionHandle();
  assertNotNull(action);
  action.setURI("String_Node_Str");
  labelHandle=(LabelHandle)designHandle.findElement("String_Node_Str");
  assertEquals(ReportDesign.BODY_SLOT,labelHandle.getContainer().findContentSlot(labelHandle));
  labelHandle.setProperty(Style.COLOR_PROP,"String_Node_Str");
  assertEquals(ReportDesign.BODY_SLOT,labelHandle.getContainer().findContentSlot(labelHandle));
  labelHandle.setText("String_Node_Str");
  labelHandle.setWidth("String_Node_Str");
  labelHandle.setTextKey("String_Node_Str");
  labelHandle.setHelpText("String_Node_Str");
  labelHandle.setHelpTextKey("String_Node_Str");
  labelHandle.setRole("String_Node_Str");
  labelHandle.setLanguage("String_Node_Str");
  labelHandle.setAltText("String_Node_Str");
  labelHandle.setOrder(1);
  labelHandle.setCustomXml("String_Node_Str");
  labelHandle.setProperty(IStyleModel.WIDOWS_PROP,"String_Node_Str");
  labelHandle.setProperty(IStyleModel.ORPHANS_PROP,"String_Node_Str");
  assertEquals(ReportDesign.BODY_SLOT,labelHandle.getContainer().findContentSlot(labelHandle));
  labelHandle=(LabelHandle)designHandle.findElement("String_Node_Str");
  labelHandle.setPushDown(true);
  save();
  assertTrue(compareFile(goldenFileName));
}

Fixed version (ground truth):
/** 
 * This test sets properties, writes the design file and compares it with golden file.
 * @throws Exception if opening or saving design file failed.
 */
public void testWriter() throws Exception {
  LabelHandle labelHandle=getLabel();
  labelHandle.setProperty(Label.X_PROP,"String_Node_Str");
  labelHandle.setProperty(Label.HEIGHT_PROP,"String_Node_Str");
  labelHandle.setProperty(Label.STYLE_PROP,null);
  OdaDataSet dataSet=(OdaDataSet)design.findDataSet("String_Node_Str");
  assertNotNull(dataSet);
  labelHandle.setProperty(Label.DATA_SET_PROP,null);
  labelHandle.setProperty(Label.NAME_PROP,"String_Node_Str");
  ActionHandle action=labelHandle.getActionHandle();
  assertNotNull(action);
  action.setURI("String_Node_Str");
  labelHandle=(LabelHandle)designHandle.findElement("String_Node_Str");
  assertEquals(ReportDesign.BODY_SLOT,labelHandle.getContainer().findContentSlot(labelHandle));
  labelHandle.setProperty(Style.COLOR_PROP,"String_Node_Str");
  assertEquals(ReportDesign.BODY_SLOT,labelHandle.getContainer().findContentSlot(labelHandle));
  labelHandle.setText("String_Node_Str");
  labelHandle.setWidth("String_Node_Str");
  labelHandle.setTextKey("String_Node_Str");
  labelHandle.setHelpText("String_Node_Str");
  labelHandle.setHelpTextKey("String_Node_Str");
  labelHandle.setTagType("String_Node_Str");
  labelHandle.setLanguage("String_Node_Str");
  labelHandle.setAltText("String_Node_Str");
  labelHandle.setOrder(1);
  labelHandle.setCustomXml("String_Node_Str");
  labelHandle.setProperty(IStyleModel.WIDOWS_PROP,"String_Node_Str");
  labelHandle.setProperty(IStyleModel.ORPHANS_PROP,"String_Node_Str");
  assertEquals(ReportDesign.BODY_SLOT,labelHandle.getContainer().findContentSlot(labelHandle));
  labelHandle=(LabelHandle)designHandle.findElement("String_Node_Str");
  labelHandle.setPushDown(true);
  save();
  assertTrue(compareFile(goldenFileName));
}