]> source.dussan.org Git - poi.git/commitdiff
fix build issue
authorPJ Fanning <fanningpj@apache.org>
Sat, 31 Aug 2019 13:27:22 +0000 (13:27 +0000)
committerPJ Fanning <fanningpj@apache.org>
Sat, 31 Aug 2019 13:27:22 +0000 (13:27 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1866208 13f79535-47bb-0310-9956-ffa450edef68

src/scratchpad/testcases/org/apache/poi/hwpf/usermodel/TestBugs.java

index e1388c4104035de390e7e054c002e7c08a0108f0..09c6c64b3328b907a018f610e66585a25c052828 100644 (file)
@@ -46,11 +46,11 @@ import org.apache.poi.hwpf.model.FileInformationBlock;
 import org.apache.poi.hwpf.model.PicturesTable;
 import org.apache.poi.hwpf.model.PlexOfField;
 import org.apache.poi.hwpf.model.SubdocumentType;
-import org.apache.poi.ooxml.util.DocumentHelper;
 import org.apache.poi.poifs.filesystem.POIFSFileSystem;
 import org.apache.poi.util.IOUtils;
 import org.apache.poi.util.POILogFactory;
 import org.apache.poi.util.POILogger;
+import org.apache.poi.util.XMLHelper;
 import org.junit.Test;
 import org.w3c.dom.Document;
 
@@ -899,7 +899,7 @@ public class TestBugs{
     @Test
     public void test59322() throws Exception {
         try(HWPFDocument doc = HWPFTestDataSamples.openSampleFile("59322.doc")) {
-            Document document = DocumentHelper.createDocument();
+            Document document = XMLHelper.getDocumentBuilderFactory().newDocumentBuilder().newDocument();
             WordToHtmlConverter wordToHtmlConverter = new WordToHtmlConverter(document);
             wordToHtmlConverter.processDocument(doc);
             assertNotNull(document);