Search in sources :

Example 11 with CTRow

use of org.openxmlformats.schemas.spreadsheetml.x2006.main.CTRow in project poi by apache.

the class TestUnfixedBugs method checkRow57423.

private void checkRow57423(Sheet testSheet, int rowNum, String contents) {
    Row row = testSheet.getRow(rowNum);
    assertNotNull("Expecting row at rownum " + rowNum, row);
    CTRow ctRow = ((XSSFRow) row).getCTRow();
    assertEquals(rowNum + 1, ctRow.getR());
    Cell cell = row.getCell(0);
    assertNotNull("Expecting cell at rownum " + rowNum, cell);
    assertEquals("Did not have expected contents at rownum " + rowNum, contents + ".0", cell.toString());
}
Also used : CTRow(org.openxmlformats.schemas.spreadsheetml.x2006.main.CTRow) Row(org.apache.poi.ss.usermodel.Row) Cell(org.apache.poi.ss.usermodel.Cell) CTRow(org.openxmlformats.schemas.spreadsheetml.x2006.main.CTRow)

Aggregations

CTRow (org.openxmlformats.schemas.wordprocessingml.x2006.main.CTRow)6 CTTbl (org.openxmlformats.schemas.wordprocessingml.x2006.main.CTTbl)5 XmlCursor (org.apache.xmlbeans.XmlCursor)3 XmlObject (org.apache.xmlbeans.XmlObject)3 CTRow (org.openxmlformats.schemas.spreadsheetml.x2006.main.CTRow)3 SXSSFWorkbook (org.apache.poi.xssf.streaming.SXSSFWorkbook)2 Test (org.junit.Test)2 CTCell (org.openxmlformats.schemas.spreadsheetml.x2006.main.CTCell)2 ArrayList (java.util.ArrayList)1 Cell (org.apache.poi.ss.usermodel.Cell)1 CreationHelper (org.apache.poi.ss.usermodel.CreationHelper)1 Row (org.apache.poi.ss.usermodel.Row)1 XSSFCell (org.apache.poi.xssf.usermodel.XSSFCell)1 XSSFCellStyle (org.apache.poi.xssf.usermodel.XSSFCellStyle)1 CTSheetData (org.openxmlformats.schemas.spreadsheetml.x2006.main.CTSheetData)1 CTWorksheet (org.openxmlformats.schemas.spreadsheetml.x2006.main.CTWorksheet)1 CTRowImpl (org.openxmlformats.schemas.spreadsheetml.x2006.main.impl.CTRowImpl)1 CTP (org.openxmlformats.schemas.wordprocessingml.x2006.main.CTP)1 CTR (org.openxmlformats.schemas.wordprocessingml.x2006.main.CTR)1 CTTc (org.openxmlformats.schemas.wordprocessingml.x2006.main.CTTc)1