From ed6a27c2be8c99dd76ac2a5ad98d14f5e2c27f8c Mon Sep 17 00:00:00 2001 From: Avik Sengupta Date: Thu, 31 Jul 2003 20:00:03 +0000 Subject: [PATCH] Testcase for bug 13769 .. thanks michael tosdevin the bug has already been fixed in 2.0pre3 git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@353279 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/poi/hssf/data/13796.xls | Bin 0 -> 49152 bytes .../apache/poi/hssf/usermodel/TestBugs.java | 19 +++++++++++++++++- 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 src/testcases/org/apache/poi/hssf/data/13796.xls diff --git a/src/testcases/org/apache/poi/hssf/data/13796.xls b/src/testcases/org/apache/poi/hssf/data/13796.xls new file mode 100644 index 0000000000000000000000000000000000000000..efae53f48d78bc8d721a0f39d756cb10f595f0eb GIT binary patch literal 49152 zcmeI52S5}@-~VTh-V|(r0-o4VKvC?Xw`WJi0wSm=ARLM`rP!lqi@n6&qQrtGMkV&1 z)5Mb4Ta2-tJ!&k`Xd24@J3F__QOpyJdEWcKFROF6H#a8($a#ob2(}CjTXBK zLT(ZT$u>WTS3+(fM3BM6oDlWU_=Lpxv}k3Il(bmQ(D-EKzqqv$HAGXUK?lQYK`jYI zoEce;*HXk)R98lPEi1lm7Srw%Ut5qeWFT!$Bbw=|G(ipo=Y}f;G2Kk@)l+;eg;z>; zis$?w#?&Jf$uXqQ9Xp4aJ2nfdCaENzM3Y4FUptCw7cQ4V)jkHK$fE>QM9oDU-G-Bj zKI&oaLM%vGLOfS{R`sb`)vtMkue9r7?vDQNVsxxeuqL*zaRLuwg{F{CuH$EXK0bMv zS0&cOBY%nlxroUclG?FbGOk-kEtuZOu0sYPnC6Z4Wq z811w8eCb;d9|DswE(ih&l*ME6ic_ib3T!~UNnN7?rLzs?OQ(v(8lPuP*1&p6^XAPx z%&o~^MVcN7gexEPldAd-5r$8$SB! zNjYYveCIDZC5vYkEXMyL9s28dW?Mz2e_K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/usermodel/TestBugs.java b/src/testcases/org/apache/poi/hssf/usermodel/TestBugs.java index 48cec0192..487c123f9 100644 --- a/src/testcases/org/apache/poi/hssf/usermodel/TestBugs.java +++ b/src/testcases/org/apache/poi/hssf/usermodel/TestBugs.java @@ -91,7 +91,24 @@ extends TestCase { 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()); + + } + }