avik 2003/07/31 13:00:03
Modified: src/testcases/org/apache/poi/hssf/usermodel TestBugs.java
Added: src/testcases/org/apache/poi/hssf/data 13796.xls
Log:
Testcase for bug 13769 .. thanks michael tosdevin
the bug has already been fixed in 2.0pre3
Revision Changes Path
1.2 +85 -0 jakarta-poi/src/testcases/org/apache/poi/hssf/data/13796.xls
<<Binary file>>
1.3 +18 -1
jakarta-poi/src/testcases/org/apache/poi/hssf/usermodel/TestBugs.java
Index: TestBugs.java
===================================================================
RCS file:
/home/cvs/jakarta-poi/src/testcases/org/apache/poi/hssf/usermodel/TestBugs.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- TestBugs.java 27 Jul 2003 19:15:16 -0000 1.2
+++ TestBugs.java 31 Jul 2003 20:00:03 -0000 1.3
@@ -91,7 +91,24 @@
assertTrue("File Should Exist", file.exists());
}
-
+ public void test13796()
+ throws java.io.IOException
+ {
+ String readFilename = System.getProperty("HSSF.testdata.path");
+ FileInputStream in = new
FileInputStream(readFilename+File.separator+"13796.xls");
+ HSSFWorkbook wb = new HSSFWorkbook(in);
+ HSSFSheet s = wb.getSheetAt(0);
+ HSSFRow r = s.createRow(0);
+ HSSFCell c = r.createCell((short)0);
+ c.setCellValue(10);
+ File file = File.createTempFile("test13796",".xls");
+ FileOutputStream out = new FileOutputStream(file);
+ wb.write(out);
+ assertTrue("No exception thrown", true);
+ assertTrue("File Should Exist", file.exists());
+
+ }
+
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
Mailing List: http://jakarta.apache.org/site/mail2.html#poi
The Apache Jakarta POI Project: http://jakarta.apache.org/poi/