diff options
author | Liu Zhe <liuzhe@apache.org> | 2012-07-13 01:58:11 +0000 |
---|---|---|
committer | Liu Zhe <liuzhe@apache.org> | 2012-07-13 01:58:11 +0000 |
commit | 529e60acea9d140f5a8dad2a7b106119a120bfca (patch) | |
tree | f4b3a53b425efd0f69f082e1f317f01ce33ec378 /test | |
parent | 438e9bbfd66fb06540c80249a0be336886e55eec (diff) |
Add a new method prepareData(String, String). The second argument is used to specify a relative path under testspace.
Notes
Notes:
ignore: vclauto
Diffstat (limited to 'test')
-rw-r--r-- | test/testcommon/source/org/openoffice/test/common/Testspace.java | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/test/testcommon/source/org/openoffice/test/common/Testspace.java b/test/testcommon/source/org/openoffice/test/common/Testspace.java index b03453744e55..af07268a3452 100644 --- a/test/testcommon/source/org/openoffice/test/common/Testspace.java +++ b/test/testcommon/source/org/openoffice/test/common/Testspace.java @@ -61,8 +61,12 @@ public class Testspace { } public static String prepareData(String dataFilePath) { + return prepareData(dataFilePath, "data/" + dataFilePath); + } + + public static String prepareData(String dataFilePath, String to) { File dataFile = new File(dataFilePath); - File workingFile = getFile("data/" + dataFilePath); + File workingFile = getFile(to); if (!dataFile.isAbsolute()) dataFile = new File(testdata, dataFilePath); @@ -79,5 +83,4 @@ public class Testspace { return workingFile.getAbsolutePath(); } - } |