diff options
author | Nick Burch <nick@apache.org> | 2016-06-23 18:44:34 +0000 |
---|---|---|
committer | Nick Burch <nick@apache.org> | 2016-06-23 18:44:34 +0000 |
commit | cf9d309cde8bfe2a99bf14894e392804c7f1149f (patch) | |
tree | 48e2deee71a7be897645d0ac951767e3d4a1f24e /src/ooxml | |
parent | b6399c2754f67cc629dccd3dd62ee50c8c747565 (diff) | |
download | poi-cf9d309cde8bfe2a99bf14894e392804c7f1149f.tar.gz poi-cf9d309cde8bfe2a99bf14894e392804c7f1149f.zip |
Disabled unit test for bug #59746, test file from Rob Owen
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1749963 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/ooxml')
-rw-r--r-- | src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFBugs.java | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFBugs.java b/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFBugs.java index 9538c7c86d..97ace44e47 100644 --- a/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFBugs.java +++ b/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFBugs.java @@ -3082,4 +3082,19 @@ public final class TestXSSFBugs extends BaseTestBugzillaIssues { Cell P16 = row.getCell(P); assertEquals(10.0, P16.getNumericCellValue(), 0.00001); } + + /** + * Files produced by some scientific equipment neglect + * to include the row number on the row tags + */ + @Test + @Ignore("Not yet supported") + public void noRowNumbers59746() { + Workbook wb = XSSFTestDataSamples.openSampleWorkbook("59746_NoRowNums.xlsx"); + Sheet sheet = wb.getSheetAt(0); + assertTrue("Last row num: "+sheet.getLastRowNum(), sheet.getLastRowNum()>20); + assertEquals("Checked", sheet.getRow(0).getCell(0).getStringCellValue()); + assertEquals("Checked", sheet.getRow(9).getCell(2).getStringCellValue()); + assertEquals(false, sheet.getRow(70).getCell(8).getBooleanCellValue()); + } } |