From cf9d309cde8bfe2a99bf14894e392804c7f1149f Mon Sep 17 00:00:00 2001
From: Nick Burch <nick@apache.org>
Date: Thu, 23 Jun 2016 18:44:34 +0000
Subject: [PATCH] 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
---
 .../apache/poi/xssf/usermodel/TestXSSFBugs.java  |  15 +++++++++++++++
 test-data/spreadsheet/59746_NoRowNums.xlsx       | Bin 0 -> 5927 bytes
 2 files changed, 15 insertions(+)
 create mode 100644 test-data/spreadsheet/59746_NoRowNums.xlsx

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());
+    }
 }
diff --git a/test-data/spreadsheet/59746_NoRowNums.xlsx b/test-data/spreadsheet/59746_NoRowNums.xlsx
new file mode 100644
index 0000000000000000000000000000000000000000..72c26e9c50da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