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

TestUnionPtg

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