FileDocCategorySizeDatePackage
TestErrPtg.javaAPI DocApache Poi 3.0.11671Mon Jan 01 12:39:46 GMT 2007org.apache.poi.hssf.record.formula

TestErrPtg

public class TestErrPtg extends AbstractPtgTestCase
Tests for {@link ErrPtg}.
author
Daniel Noll (daniel at nuix dot com dot au)

Fields Summary
Constructors Summary
Methods Summary
public voidtestReading()
Tests reading a file containing this ptg.

        HSSFWorkbook workbook = loadWorkbook("ErrPtg.xls");
        HSSFCell cell = workbook.getSheetAt(0).getRow(3).getCell((short) 0);
        assertEquals("Wrong cell value", 4.0, cell.getNumericCellValue(), 0.0);
        assertEquals("Wrong cell formula", "ERROR.TYPE(#REF!)", cell.getCellFormula());