Example usage for org.apache.poi.ss.usermodel FormulaError getCode

List of usage examples for org.apache.poi.ss.usermodel FormulaError getCode

Introduction

In this page you can find the example usage for org.apache.poi.ss.usermodel FormulaError getCode.

Prototype

public byte getCode() 

Source Link

Usage

From source file:edu.si.sidora.excel2tabular.TabularCellTest.java

License:Apache License

@Test
public void testErrorValuedCell() {
    for (final FormulaError error : FormulaError.values()) {
        when(errorCell.getCellType()).thenReturn(CELL_TYPE_ERROR);
        when(errorCell.getErrorCellValue()).thenReturn(error.getCode());
        assertEquals(error.getString(), new TabularCell(errorCell).toString());
    }//  ww w. ja  v a2 s.  com
}