poi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cen...@apache.org
Subject svn commit: r1711199 - /poi/trunk/src/testcases/org/apache/poi/hssf/dev/BaseXLSIteratingTest.java
Date Thu, 29 Oct 2015 09:30:11 GMT
Author: centic
Date: Thu Oct 29 09:30:11 2015
New Revision: 1711199

URL: http://svn.apache.org/viewvc?rev=1711199&view=rev
Log:
Ensure that no password was set by other tests, this breaks sometimes when the Sonar/Maven
build runs all tests in one VM

Modified:
    poi/trunk/src/testcases/org/apache/poi/hssf/dev/BaseXLSIteratingTest.java

Modified: poi/trunk/src/testcases/org/apache/poi/hssf/dev/BaseXLSIteratingTest.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/testcases/org/apache/poi/hssf/dev/BaseXLSIteratingTest.java?rev=1711199&r1=1711198&r2=1711199&view=diff
==============================================================================
--- poi/trunk/src/testcases/org/apache/poi/hssf/dev/BaseXLSIteratingTest.java (original)
+++ poi/trunk/src/testcases/org/apache/poi/hssf/dev/BaseXLSIteratingTest.java Thu Oct 29 09:30:11
2015
@@ -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 BaseXLSIteratingTe
     
 	@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) {



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@poi.apache.org
For additional commands, e-mail: commits-help@poi.apache.org


Mime
View raw message