Program: 56463
Project: 56463
Buggy source:
@Test public void testGeneralCellValue1(){
  SBook book=SBooks.createBook("String_Node_Str");
  SSheet sheet=book.createSheet("String_Node_Str");
  Date now=new Date();
  ErrorValue err=new ErrorValue(ErrorValue.INVALID_FORMULA);
  SCell cell=sheet.getCell(1,1);
  Assert.assertEquals(CellType.BLANK,cell.getType());
  Assert.assertNull(cell.getValue());
  SRanges.range(sheet,1,1).setEditText("String_Node_Str");
  Assert.assertEquals(CellType.STRING,cell.getType());
  Assert.assertEquals("String_Node_Str",cell.getValue());
  SRanges.range(sheet,1,1).setEditText("String_Node_Str");
  Assert.assertEquals(CellType.NUMBER,cell.getType());
  Assert.assertEquals(123,cell.getNumberValue().intValue());
  SRanges.range(sheet,1,1).setEditText("String_Node_Str");
  Assert.assertEquals(CellType.NUMBER,cell.getType());
  Assert.assertEquals("String_Node_Str",new SimpleDateFormat("String_Node_Str").format((Date)cell.getDateValue()));
  SRanges.range(sheet,1,1).setEditText("String_Node_Str");
  Assert.assertEquals(CellType.BOOLEAN,cell.getType());
  Assert.assertEquals(Boolean.TRUE,cell.getBooleanValue());
  SRanges.range(sheet,1,1).setEditText("String_Node_Str");
  Assert.assertEquals(CellType.BOOLEAN,cell.getType());
  Assert.assertEquals(Boolean.FALSE,cell.getBooleanValue());
  SRanges.range(sheet,1,1).setEditText("String_Node_Str");
  Assert.assertEquals(CellType.FORMULA,cell.getType());
  Assert.assertEquals(CellType.NUMBER,cell.getFormulaResultType());
  Assert.assertEquals("String_Node_Str",cell.getFormulaValue());
  Assert.assertEquals(999D,cell.getValue());
  try {
    SRanges.range(sheet,1,1).setEditText("String_Node_Str");
    Assert.fail("String_Node_Str");
  }
 catch (  InvalidModelOpException x) {
    Assert.assertEquals(CellType.FORMULA,cell.getType());
    Assert.assertEquals(CellType.NUMBER,cell.getFormulaResultType());
    Assert.assertEquals("String_Node_Str",cell.getFormulaValue());
    Assert.assertEquals(999D,cell.getValue());
  }
  SRanges.range(sheet,1,1).setEditText("String_Node_Str");
  Assert.assertEquals(CellType.STRING,cell.getType());
  Assert.assertEquals("String_Node_Str",cell.getValue());
}

Fixed version (ground truth):
@Test public void testGeneralCellValue1(){
  SBook book=SBooks.createBook("String_Node_Str");
  SSheet sheet=book.createSheet("String_Node_Str");
  Date now=new Date();
  ErrorValue err=new ErrorValue(ErrorValue.INVALID_FORMULA);
  SCell cell=sheet.getCell(1,1);
  Assert.assertEquals(CellType.BLANK,cell.getType());
  Assert.assertNull(cell.getValue());
  SRanges.range(sheet,1,1).setEditText("String_Node_Str");
  Assert.assertEquals(CellType.STRING,cell.getType());
  Assert.assertEquals("String_Node_Str",cell.getValue());
  SRanges.range(sheet,1,1).setEditText("String_Node_Str");
  Assert.assertEquals(CellType.NUMBER,cell.getType());
  Assert.assertEquals(123,cell.getNumberValue().intValue());
  SRanges.range(sheet,1,1).setEditText("String_Node_Str");
  Assert.assertEquals(CellType.NUMBER,cell.getType());
  Assert.assertEquals("String_Node_Str",new SimpleDateFormat("String_Node_Str").format((Date)cell.getDateValue()));
  SRanges.range(sheet,1,1).setEditText("String_Node_Str");
  Assert.assertEquals(CellType.BOOLEAN,cell.getType());
  Assert.assertEquals(Boolean.TRUE,cell.getBooleanValue());
  SRanges.range(sheet,1,1).setEditText("String_Node_Str");
  Assert.assertEquals(CellType.BOOLEAN,cell.getType());
  Assert.assertEquals(Boolean.FALSE,cell.getBooleanValue());
  SRanges.range(sheet,1,1).setEditText("String_Node_Str");
  Assert.assertEquals(CellType.FORMULA,cell.getType());
  Assert.assertEquals(CellType.NUMBER,cell.getFormulaResultType());
  Assert.assertEquals("String_Node_Str",cell.getFormulaValue());
  Assert.assertEquals(999D,cell.getValue());
  try {
    SRanges.range(sheet,1,1).setEditText("String_Node_Str");
    Assert.fail("String_Node_Str");
  }
 catch (  InvalidModelOpException x) {
    Assert.assertEquals(CellType.FORMULA,cell.getType());
    Assert.assertEquals(CellType.NUMBER,cell.getFormulaResultType());
    Assert.assertEquals("String_Node_Str",cell.getFormulaValue());
    Assert.assertEquals(999D,cell.getValue());
  }
  SRanges.range(sheet,1,1).setEditText("String_Node_Str");
  Assert.assertEquals(CellType.BLANK,cell.getType());
  Assert.assertEquals(null,cell.getValue());
}