poi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cen...@apache.org
Subject svn commit: r1702786 - in /poi/trunk: src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFWorkbook.java test-data/spreadsheet/54399.xlsx
Date Sun, 13 Sep 2015 14:49:00 GMT
Author: centic
Date: Sun Sep 13 14:48:58 2015
New Revision: 1702786

URL: http://svn.apache.org/r1702786
Log:
Add test case for bug 54399

Added:
    poi/trunk/test-data/spreadsheet/54399.xlsx
Modified:
    poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFWorkbook.java

Modified: poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFWorkbook.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFWorkbook.java?rev=1702786&r1=1702785&r2=1702786&view=diff
==============================================================================
--- poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFWorkbook.java (original)
+++ poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFWorkbook.java Sun
Sep 13 14:48:58 2015
@@ -924,4 +924,20 @@ public final class TestXSSFWorkbook exte
             IOUtils.closeQuietly(workbook);
         }
     }
+
+    @Test
+    public void testBug54399() throws IOException {
+        XSSFWorkbook workbook = XSSFTestDataSamples.openSampleWorkbook("54399.xlsx");
+              
+        //System.out.println("sheets:" + workbook.getNumberOfSheets());
+
+        for (int i = 0; i < workbook.getNumberOfSheets(); i++) {  
+          //System.out.println("i:" + i);
+          workbook.setSheetName(i, "SheetRenamed" + (i + 1));
+        }  
+
+//        FileOutputStream fileOutputStream = new FileOutputStream("/tmp/54399.xlsx"); 
+//        workbook.write(fileOutputStream);
+//        fileOutputStream.close();  
+    }
 }

Added: poi/trunk/test-data/spreadsheet/54399.xlsx
URL: http://svn.apache.org/viewvc/poi/trunk/test-data/spreadsheet/54399.xlsx?rev=1702786&view=auto
==============================================================================
Binary files poi/trunk/test-data/spreadsheet/54399.xlsx (added) and poi/trunk/test-data/spreadsheet/54399.xlsx
Sun Sep 13 14:48:58 2015 differ



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


Mime
View raw message