This is needed when running tests in the IDE via the Gradle project import
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@
1888417 13f79535-47bb-0310-9956-
ffa450edef68
if(_instXmlDSign == null) _instXmlDSign = new POIDataSamples("xmldsign");
return _instXmlDSign;
}
-
+
/**
* Opens a sample file from the test data directory
*
return;
}
- if(new File("test-data").exists()) {
- dataDirName = "test-data";
+ if (new File("test-data").exists()) {
+ dataDirName = "test-data";
+ } else if (new File("../test-data").exists()) {
+ dataDirName = "../test-data";
} else {
throw new RuntimeException("Must set system property '" +
TEST_PROPERTY + "' before running tests");