]> source.dussan.org Git - poi.git/commitdiff
Ensure that no password was set by other tests, this breaks sometimes when the Sonar...
authorDominik Stadler <centic@apache.org>
Thu, 29 Oct 2015 09:30:11 +0000 (09:30 +0000)
committerDominik Stadler <centic@apache.org>
Thu, 29 Oct 2015 09:30:11 +0000 (09:30 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1711199 13f79535-47bb-0310-9956-ffa450edef68

src/testcases/org/apache/poi/hssf/dev/BaseXLSIteratingTest.java

index 677d9a7b1c54462d69d51a1cca57b7d68f8dcaf0..14e217be327b310afcd6c91cd1984c012b61dcb8 100644 (file)
@@ -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) {