]> source.dussan.org Git - poi.git/commitdiff
don't leave behind files when running unit tests. In the future this should be revisi...
authorJaven O'Neal <onealj@apache.org>
Mon, 2 Nov 2015 09:23:12 +0000 (09:23 +0000)
committerJaven O'Neal <onealj@apache.org>
Mon, 2 Nov 2015 09:23:12 +0000 (09:23 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1711920 13f79535-47bb-0310-9956-ffa450edef68

src/ooxml/testcases/org/apache/poi/ss/formula/TestFormulaParser.java
src/testcases/org/apache/poi/hssf/model/TestFormulaParser.java

index ade19a3846c48ff4b349409e84a2067cf1da09fc..d6e442fd62a2ff550526f94f6b18541334b5bbb4 100644 (file)
@@ -114,11 +114,15 @@ public class TestFormulaParser extends TestCase {
             XSSFTestDataSamples.writeOutAndReadBack(wb).close();
             
             // Manually check to make sure file isn't corrupted
+            // TODO: develop a process for occasionally manually reviewing workbooks
+            // to verify workbooks are not corrupted
+            /*
             final File fileIn = XSSFTestDataSamples.getSampleFile(testFile);
             final File reSavedFile = new File(fileIn.getParentFile(), fileIn.getName().replace(".xlsm", "-saved.xlsm"));
             final FileOutputStream fos = new FileOutputStream(reSavedFile);
             wb.write(fos);
             fos.close();
+            */
         } finally {
             wb.close();
         }
index 35576cac6dc38f3b46654e98a6c01d13abe260c0..9dd2af81897d87465f1936e2497371b6a8f05956 100644 (file)
@@ -161,11 +161,15 @@ public final class TestFormulaParser extends TestCase {
                                assertEqualsIgnoreCase("yourFunc", wb2.getName("yourFunc").getNameName());
 
                                // Manually check to make sure file isn't corrupted
+                               // TODO: develop a process for occasionally manually reviewing workbooks
+                               // to verify workbooks are not corrupted
+                               /*
                                final File fileIn = HSSFTestDataSamples.getSampleFile(testFile);
                                final File reSavedFile = new File(fileIn.getParentFile(), fileIn.getName().replace(".xls", "-saved.xls"));
                                FileOutputStream fos = new FileOutputStream(reSavedFile);
                                wb2.write(fos);
                                fos.close();
+                               */
                        } finally {
                                wb2.close();
                        }