aboutsummaryrefslogtreecommitdiffstats
path: root/src/ooxml/testcases/org/apache/poi/xwpf/usermodel/TestXWPFSDT.java
diff options
context:
space:
mode:
authorPJ Fanning <fanningpj@apache.org>2018-07-24 09:46:44 +0000
committerPJ Fanning <fanningpj@apache.org>2018-07-24 09:46:44 +0000
commit4adebdbe1cd9cb1decbba84ec1f04211ffffdab4 (patch)
treea0bb232f3240de0c4c04a0ef918e724330ec003f /src/ooxml/testcases/org/apache/poi/xwpf/usermodel/TestXWPFSDT.java
parent93427725762663da8f2865706abbf21ecbbfaf68 (diff)
downloadpoi-4adebdbe1cd9cb1decbba84ec1f04211ffffdab4.tar.gz
poi-4adebdbe1cd9cb1decbba84ec1f04211ffffdab4.zip
[github-115] implement endnote. This closes #115
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1836538 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/ooxml/testcases/org/apache/poi/xwpf/usermodel/TestXWPFSDT.java')
-rw-r--r--src/ooxml/testcases/org/apache/poi/xwpf/usermodel/TestXWPFSDT.java8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/ooxml/testcases/org/apache/poi/xwpf/usermodel/TestXWPFSDT.java b/src/ooxml/testcases/org/apache/poi/xwpf/usermodel/TestXWPFSDT.java
index f1ecf560e1..39a3ac6751 100644
--- a/src/ooxml/testcases/org/apache/poi/xwpf/usermodel/TestXWPFSDT.java
+++ b/src/ooxml/testcases/org/apache/poi/xwpf/usermodel/TestXWPFSDT.java
@@ -17,17 +17,15 @@
package org.apache.poi.xwpf.usermodel;
+import static org.apache.poi.POITestCase.assertContains;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
-import static org.apache.poi.POITestCase.assertContains;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
-import java.util.Map;
import org.apache.poi.xwpf.XWPFTestDataSamples;
-import org.junit.Ignore;
import org.junit.Test;
public final class TestXWPFSDT {
@@ -168,8 +166,8 @@ public final class TestXWPFSDT {
for (XWPFFootnote footnote : doc.getFootnotes()) {
sdts.addAll(extractSDTsFromBodyElements(footnote.getBodyElements()));
}
- for (Map.Entry<Integer, XWPFFootnote> e : doc.endnotes.entrySet()) {
- sdts.addAll(extractSDTsFromBodyElements(e.getValue().getBodyElements()));
+ for (XWPFEndnote footnote : doc.getEndnotes()) {
+ sdts.addAll(extractSDTsFromBodyElements(footnote.getBodyElements()));
}
return sdts;
}