Browse Source

BUG 59858 -- avoid npe when there's a collision of record names...doh. Fix unit test.

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1765482 13f79535-47bb-0310-9956-ffa450edef68
tags/REL_3_16_BETA1
Tim Allison 7 years ago
parent
commit
2732e72385
1 changed files with 3 additions and 3 deletions
  1. 3
    3
      src/testcases/org/apache/poi/poifs/macros/TestVBAMacroReader.java

+ 3
- 3
src/testcases/org/apache/poi/poifs/macros/TestVBAMacroReader.java View 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

Loading…
Cancel
Save