]> source.dussan.org Git - poi.git/commitdiff
Fix Sonar-Maven build, correctly determine path to test-file
authorDominik Stadler <centic@apache.org>
Mon, 26 Oct 2015 20:48:38 +0000 (20:48 +0000)
committerDominik Stadler <centic@apache.org>
Mon, 26 Oct 2015 20:48:38 +0000 (20:48 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1710694 13f79535-47bb-0310-9956-ffa450edef68

src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFWorkbook.java

index 199a3fe3076ecaefd7ff10f8e327055f98462afc..1378cd4fa5c2c29a6b956e8b5df43c31398eaa0e 100644 (file)
@@ -1029,7 +1029,7 @@ public final class TestXSSFWorkbook extends BaseTestWorkbook {
         
         try {
             // as the file is written to, we make a copy before actually working on it
-            FileHelper.copyFile(new File("test-data/spreadsheet/56957.xlsx"), file);
+            FileHelper.copyFile(HSSFTestDataSamples.getSampleFile("56957.xlsx"), file);
             
             assertTrue(file.exists());