]> source.dussan.org Git - poi.git/commitdiff
BUG 59858 -- avoid npe when there's a collision of record names...doh. Fix unit test.
authorTim Allison <tallison@apache.org>
Tue, 18 Oct 2016 16:54:12 +0000 (16:54 +0000)
committerTim Allison <tallison@apache.org>
Tue, 18 Oct 2016 16:54:12 +0000 (16:54 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1765482 13f79535-47bb-0310-9956-ffa450edef68

src/testcases/org/apache/poi/poifs/macros/TestVBAMacroReader.java

index 3a4c47361ddc36f581c010e47dad139e58957032..a001ad9896fdff9b041fae0d70382be1158db1d0 100644 (file)
@@ -257,11 +257,11 @@ public class TestVBAMacroReader {
 
     @Test
     public void bug59858() throws IOException {
-        File f = POIDataSamples.getSpreadSheetInstance().getFile("59830.xls");
+        File f = POIDataSamples.getSpreadSheetInstance().getFile("59858.xls");
         VBAMacroReader r = new VBAMacroReader(f);
         Map<String, String> macros = r.readMacros();
-        assertNotNull(macros.get("Module20"));
-        assertContains(macros.get("Module20"), "start of superscripting");
+        assertNotNull(macros.get("Sheet4"));
+        assertContains(macros.get("Sheet4"), "intentional constituent");
     }
 
     @Test