From 458a19aeece1255b08efe7c23dddd772aa37c186 Mon Sep 17 00:00:00 2001 From: Dominik Stadler Date: Thu, 29 Oct 2015 09:30:11 +0000 Subject: [PATCH] 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 --- .../org/apache/poi/hssf/dev/BaseXLSIteratingTest.java | 4 ++++ 1 file changed, 4 insertions(+) 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) {