aboutsummaryrefslogtreecommitdiffstats
path: root/src/testcases/org/apache/poi/hssf/dev
diff options
context:
space:
mode:
authorDominik Stadler <centic@apache.org>2015-10-29 09:30:11 +0000
committerDominik Stadler <centic@apache.org>2015-10-29 09:30:11 +0000
commit458a19aeece1255b08efe7c23dddd772aa37c186 (patch)
treef2b6b13a8a743598f7f2b041a8def33c29cc441f /src/testcases/org/apache/poi/hssf/dev
parente43d36f06d1c50f79347c30e07c939dd6592fd29 (diff)
downloadpoi-458a19aeece1255b08efe7c23dddd772aa37c186.tar.gz
poi-458a19aeece1255b08efe7c23dddd772aa37c186.zip
Ensure that no password was set by other tests, this breaks sometimes when the Sonar/Maven build runs all tests in one VM
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1711199 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/testcases/org/apache/poi/hssf/dev')
-rw-r--r--src/testcases/org/apache/poi/hssf/dev/BaseXLSIteratingTest.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/testcases/org/apache/poi/hssf/dev/BaseXLSIteratingTest.java b/src/testcases/org/apache/poi/hssf/dev/BaseXLSIteratingTest.java
index 677d9a7b1c..14e217be32 100644
--- a/src/testcases/org/apache/poi/hssf/dev/BaseXLSIteratingTest.java
+++ b/src/testcases/org/apache/poi/hssf/dev/BaseXLSIteratingTest.java
@@ -28,6 +28,7 @@ import java.util.List;
import java.util.Locale;
import org.apache.poi.POIDataSamples;
+import org.apache.poi.hssf.record.crypto.Biff8EncryptionKey;
import org.apache.poi.hssf.usermodel.HSSFWorkbook;
import org.junit.Assume;
import org.junit.Test;
@@ -82,6 +83,9 @@ public abstract class BaseXLSIteratingTest {
@Test
public void testMain() throws Exception {
+ // we had intermittent problems when this was set differently somehow, let's try to set it here so it always is set correctly for these tests
+ Biff8EncryptionKey.setCurrentUserPassword(null);
+
try {
runOneFile(file);
} catch (Exception e) {