You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@poi.apache.org by ce...@apache.org on 2015/06/28 21:55:56 UTC
svn commit: r1688045 -
/poi/trunk/src/ooxml/testcases/org/apache/poi/openxml4j/opc/TestPackage.java
Author: centic
Date: Sun Jun 28 19:55:56 2015
New Revision: 1688045
URL: http://svn.apache.org/r1688045
Log:
Open file read-only in test to avoid making it dirty during running unit tests
Modified:
poi/trunk/src/ooxml/testcases/org/apache/poi/openxml4j/opc/TestPackage.java
Modified: poi/trunk/src/ooxml/testcases/org/apache/poi/openxml4j/opc/TestPackage.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/testcases/org/apache/poi/openxml4j/opc/TestPackage.java?rev=1688045&r1=1688044&r2=1688045&view=diff
==============================================================================
--- poi/trunk/src/ooxml/testcases/org/apache/poi/openxml4j/opc/TestPackage.java (original)
+++ poi/trunk/src/ooxml/testcases/org/apache/poi/openxml4j/opc/TestPackage.java Sun Jun 28 19:55:56 2015
@@ -709,13 +709,13 @@ public final class TestPackage {
// use values close to, but within the limits
ZipSecureFile.setMinInflateRatio(min_ratio-0.002);
ZipSecureFile.setMaxEntrySize(max_size+1);
- Workbook wb = WorkbookFactory.create(file);
+ Workbook wb = WorkbookFactory.create(file, null, true);
wb.close();
// check ratio out of bounds
ZipSecureFile.setMinInflateRatio(min_ratio+0.002);
try {
- wb = WorkbookFactory.create(file);
+ wb = WorkbookFactory.create(file, null, true);
wb.close();
// this is a bit strange, as there will be different exceptions thrown
// depending if this executed via "ant test" or within eclipse
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@poi.apache.org
For additional commands, e-mail: commits-help@poi.apache.org