]> source.dussan.org Git - poi.git/commitdiff
Turns out that .xlsx files can have multiple link tables, add a test file which shows...
authorNick Burch <nick@apache.org>
Sat, 19 Jul 2014 10:09:00 +0000 (10:09 +0000)
committerNick Burch <nick@apache.org>
Sat, 19 Jul 2014 10:09:00 +0000 (10:09 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1611878 13f79535-47bb-0310-9956-ffa450edef68

src/ooxml/testcases/org/apache/poi/xssf/model/TestExternalLinksTable.java
test-data/spreadsheet/ref2-56737.xlsx [new file with mode: 0644]

index b2c9aff1487d59d1f8d57e082af4687b77c235b7..612924ad5f6b6aaf3807561469ea254e19361fa5 100644 (file)
@@ -81,4 +81,11 @@ public final class TestExternalLinksTable {
         assertEquals("Defines", name.getSheetName());
         assertEquals("$A$1", name.getRefersToFormula());
     }
+    
+    @Test
+    public void readWithReferencesToTwoExternalBooks() {
+        XSSFWorkbook wb = XSSFTestDataSamples.openSampleWorkbook("ref2-56737.xlsx");
+        
+        // TODO Fix so we can see both of them...
+    }
 }
diff --git a/test-data/spreadsheet/ref2-56737.xlsx b/test-data/spreadsheet/ref2-56737.xlsx
new file mode 100644 (file)
index 0000000..bd21fe8
Binary files /dev/null and b/test-data/spreadsheet/ref2-56737.xlsx differ