diff options
author | Dominik Stadler <centic@apache.org> | 2016-12-11 21:00:00 +0000 |
---|---|---|
committer | Dominik Stadler <centic@apache.org> | 2016-12-11 21:00:00 +0000 |
commit | 37fc8c10a458ae2dd827a8a01ec43f5219522df0 (patch) | |
tree | ae8209129c9d469016048907aa8bf7f3b651408b /src/testcases | |
parent | e0f6c8718df1a8b26bd4fb8ecbac3ac8000413a2 (diff) | |
download | poi-37fc8c10a458ae2dd827a8a01ec43f5219522df0.tar.gz poi-37fc8c10a458ae2dd827a8a01ec43f5219522df0.zip |
Adjust local test class run with Gradle-Build as well
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1773661 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/testcases')
-rw-r--r-- | src/testcases/org/apache/poi/hssf/dev/TestOneFile.java | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/testcases/org/apache/poi/hssf/dev/TestOneFile.java b/src/testcases/org/apache/poi/hssf/dev/TestOneFile.java index 16952dd80c..c3aa26422d 100644 --- a/src/testcases/org/apache/poi/hssf/dev/TestOneFile.java +++ b/src/testcases/org/apache/poi/hssf/dev/TestOneFile.java @@ -16,8 +16,7 @@ ==================================================================== */ package org.apache.poi.hssf.dev; -import java.io.File; - +import org.apache.poi.POIDataSamples; import org.junit.Test; public class TestOneFile { @@ -25,7 +24,7 @@ public class TestOneFile { public void test() throws Exception { //Biff8EncryptionKey.setCurrentUserPassword("blabla"); TestEFBiffViewer test = new TestEFBiffViewer(); - test.file = new File("test-data/spreadsheet/50833.xls"); + test.file = POIDataSamples.getSpreadSheetInstance().getFile("50833.xls"); test.testMain(); } } |