aboutsummaryrefslogtreecommitdiffstats
path: root/poi-integration
diff options
context:
space:
mode:
authorDominik Stadler <centic@apache.org>2023-08-07 11:11:45 +0000
committerDominik Stadler <centic@apache.org>2023-08-07 11:11:45 +0000
commited12f1bb499a09f69d43412fe010cd26ba1e40d6 (patch)
treeca91219e2aec6511a57c14ba92affc3ff350f0f0 /poi-integration
parenta8b31c37a6728063f9e5df620c6f885990de0e93 (diff)
downloadpoi-ed12f1bb499a09f69d43412fe010cd26ba1e40d6.tar.gz
poi-ed12f1bb499a09f69d43412fe010cd26ba1e40d6.zip
Open configuration file for integration-tests read-only to not fail if the file is opened by an Application locally
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1911504 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'poi-integration')
-rw-r--r--poi-integration/src/test/java/org/apache/poi/stress/StressMap.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/poi-integration/src/test/java/org/apache/poi/stress/StressMap.java b/poi-integration/src/test/java/org/apache/poi/stress/StressMap.java
index cf533c5b4f..12c6afe21f 100644
--- a/poi-integration/src/test/java/org/apache/poi/stress/StressMap.java
+++ b/poi-integration/src/test/java/org/apache/poi/stress/StressMap.java
@@ -46,7 +46,7 @@ public class StressMap {
private final Pattern SCRATCH_HANDLER = Pattern.compile("(HSLF|HWPF|HSMF|HMEF)");
public void load(File mapFile) throws IOException {
- try (Workbook wb = WorkbookFactory.create(mapFile)) {
+ try (Workbook wb = WorkbookFactory.create(mapFile, null, true)) {
readExMap(wb.getSheet("Exceptions"));
readHandlerMap(wb.getSheet("Handlers"));
}