]> source.dussan.org Git - poi.git/commitdiff
fixed
authorSaid Ryan Ackley <sackley@apache.org>
Mon, 21 Jul 2003 03:29:24 +0000 (03:29 +0000)
committerSaid Ryan Ackley <sackley@apache.org>
Mon, 21 Jul 2003 03:29:24 +0000 (03:29 +0000)
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@353234 13f79535-47bb-0310-9956-ffa450edef68

src/scratchpad/testcases/org/apache/poi/hwpf/HWPFDocFixture.java

index dd6a0ffe3593b619a1f1f27439e7e5b4d89b5f04..12dd34d795250a2ee0ac20216e04998af422d796 100644 (file)
@@ -6,6 +6,7 @@ import org.apache.poi.poifs.filesystem.POIFSFileSystem;
 import org.apache.poi.poifs.filesystem.DocumentEntry;
 
 import org.apache.poi.hwpf.model.hdftypes.*;
+import java.io.File;
 
 
 public class HWPFDocFixture
@@ -23,14 +24,17 @@ public class HWPFDocFixture
   {
     try
     {
-
-      String filename = System.getProperty("HSSF.testdata.path");
+      String filename = System.getProperty("HWPF.testdata.path");
+      if (filename == null)
+      {
+        filename = "c:";
+      }
 
       filename = filename + "/test.doc";
 
 
       POIFSFileSystem filesystem = new POIFSFileSystem(new FileInputStream(
-        "C:\\test.doc"));
+        new File(filename)));
 
       DocumentEntry documentProps =
         (DocumentEntry) filesystem.getRoot().getEntry("WordDocument");