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

TestIntersectionPtg

public class TestIntersectionPtg extends AbstractPtgTestCase
Tests for {@link IntersectionPtg}.
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("IntersectionPtg.xls");
        HSSFCell cell = workbook.getSheetAt(0).getRow(4).getCell((short) 2);
        assertEquals("Wrong cell value", 5.0, cell.getNumericCellValue(), 0.0);
        assertEquals("Wrong cell formula", "SUM(A1:B2 B2:C3)", cell.getCellFormula());