List of usage examples for org.apache.poi.ss.usermodel FormulaError getCode
public byte getCode()
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 }