From 614ea00c948b9d12748e6e40405b648b4c0de2f0 Mon Sep 17 00:00:00 2001 From: Yegor Kozlov Date: Sat, 19 Jan 2008 14:44:07 +0000 Subject: [PATCH] added unit tests for closed Bug 37684: Unhandled Continue Record Error git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@613400 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/poi/hssf/data/37684-1.xls | Bin 0 -> 32768 bytes .../org/apache/poi/hssf/data/37684-2.xls | Bin 0 -> 82944 bytes .../apache/poi/hssf/usermodel/TestBugs.java | 36 ++++++++++++++++++ 3 files changed, 36 insertions(+) create mode 100755 src/testcases/org/apache/poi/hssf/data/37684-1.xls create mode 100755 src/testcases/org/apache/poi/hssf/data/37684-2.xls diff --git a/src/testcases/org/apache/poi/hssf/data/37684-1.xls b/src/testcases/org/apache/poi/hssf/data/37684-1.xls new file mode 100755 index 0000000000000000000000000000000000000000..a59769eb39c37bf489de8c1bba0d89882c2c120e GIT binary patch literal 32768 zcmeI530xJ|)xghV6T}5@!v%Z-DvJvWDj>=OksZMeL=izmK@b#(aX|qAHEOC<{i%(K zkQkSWyBJ7Zu%)TCni#85qkf{Tnnat>ug1D1^ql*K47|D1FX=bQd|!X>^1Czh&bfEa zo&Vgq%e>2Z7eBUbs65=`4j6>dU<%(gS%F0hxdx9%H-EMP)HgNJ$L9SgJVuc*{68XK zWr;V^!WQ4|742Jq1EI+^8j%K~U9J&EGxi~owaCY{b;WjeSwfRG$o133y?#@tB{@|yCV$+l`qy&0{k-&Yaylz7 z{eQAt16sN~AvE*!&~tcdD0h>Q50H_&%gC)H@{J~DU{hq;M0?vJ3%0i_GGqHrMQzv~ zih%7q7nwIDvzDj~+qX>C@mj#d^t816AtWh?qjC$9p(H7ZZz1to2WD88G;l^^i4mW_ zQyO>(Q=ub3;{T8ds3)hoM{zYqFR*U3!~JP|d@Z3ETRpI>)97%k1INE% zF9GfG82bTBY)35r0buhI(=~@CJf|h3T6V$MECc8w94={#2l}qYrd3yCZ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h;i%?8&7Tqq}`8;&*!K`m~Ei1;=qAI;l$&o<$e2Fqp`U_AzxKMHs z3RyZtj3U2$#2eoeRItRszF&S zfwFa_GEfEzP=;`!EJi3~DZN63;+69EZKa=DM!dJiA7v0k;ur$7S5Y>hHdJOwD;Tqp$yg)D8_DMDFr^=!!5F@d`E z$-U-p5AKKm460H?yG#Pbb*(Z`h6qrGaiJ_jC}ipByCRhP-};(-@y@lV4^o~d9F1N5 zj%rYrOQ1xpQwGXV0m^VLl;sG8EG6z1p@h5`J%6^KwVF~SfwJir%0TfJp!jg16d@F{ zkD5JShN)QTJTK9nnrQ2X#(#0it5l4#K6;@wKoBOjs@#p+o zKlx2)?dw1{Tp1`M1t~2mU{uuY+FD zlm5vULn!(@Fm#uYL~0FFhsmk+eiy>!)a1VhAVN+}`~f26)a0K6AWBY64t@Zl<5Exnn5C z5GSYByU>W2QF9tr`9s{965C#rcRerJ27>JoZ6YG=gO&Fm^xEV-IuAeC}q)Y)=s za)JZsAyOtczH!4aUrz1L)GOrFZ=Hz}%9Vn+B$ZkTxL(I$3q+=4DmM`?uMfJse* zSm&yNApFy4zDECrZSd;Zh(yLApuX*HK8bg{s*V6P8vWP+L`Q(}L9HDDHkTCLR1pUD zQ6~z~VJc$Ke-_RKKOVzKT>0>S%O9fR7+N4R9{y|uzH1^6$NCX&OQTd(8_IV4_p_LE zn|2(-sbQ^||Mw-bOY3#HJBaQwxV5DK*c8oM=+JliSJ-|%V z-_w(BFoOCY<DVXK=0lAR&sX%zezDp*GROmlXczth@Gn)lNjpO#Y6cm6cbr2sTZy1 zqD5P@GK=)I5Q)|p`Cz0aQMB%f7B|rfCenY4k@m*W)HDHC59Z*T8ZC^4Y~1JKn!Fzq zy5j1QW{y;kw3f65sAF3Q(eL!zor8 literal 0 HcmV?d00001 diff --git a/src/testcases/org/apache/poi/hssf/data/37684-2.xls b/src/testcases/org/apache/poi/hssf/data/37684-2.xls new file mode 100755 index 0000000000000000000000000000000000000000..b17d0fa2271f9033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j zlr<=8QP!cXM_~?x{d`U*z71s~$~#atp=?HJL`kA-L1{v1MoFQxps+i?4FxF=x$D4o z)M=D9ly;O3lunc#C>fM4lx~zBl$|KMP4VvLEGLDDOsj2;~6E!zh0`d-m*mQ6EHkAIketK7jHF$_G*S`J<>GL-{bu zM^HYBatP&PDE#~_Rrr4J`rpTa253?TG{=JGx1-KTje(HzyvAbokb`{zeq)vJ)t)DW zil*dV&wk^?-#vBfi5O+>++2^RXT)~c0P&!fhr33J0{8jEBi~;?dQnV%wHTJ$1FLF- zC6e}~;6jVUiFdkTe;v}^a>1>@^9iXCCEw@2hrkkip}(!g6PhFrDJg+)_{<&v{U73k H)${)s^TT7f literal 0 HcmV?d00001 diff --git a/src/testcases/org/apache/poi/hssf/usermodel/TestBugs.java b/src/testcases/org/apache/poi/hssf/usermodel/TestBugs.java index 006b60c3dd..5993db947d 100644 --- a/src/testcases/org/apache/poi/hssf/usermodel/TestBugs.java +++ b/src/testcases/org/apache/poi/hssf/usermodel/TestBugs.java @@ -954,6 +954,42 @@ extends TestCase { assertTrue("No Exceptions while reading file", true); } + + /** + * Bug 37684 : Unhandled Continue Record Error + */ + public void test37684 () throws Exception { + FileInputStream in = new FileInputStream(new File(cwd, "37684-1.xls")); + HSSFWorkbook wb = new HSSFWorkbook(in); + in.close(); + + assertTrue("No exceptions while reading workbook", true); + + //serialize and read again + ByteArrayOutputStream out = new ByteArrayOutputStream(); + wb.write(out); + out.close(); + assertTrue("No exceptions while saving workbook", true); + + wb = new HSSFWorkbook(new ByteArrayInputStream(out.toByteArray())); + assertTrue("No exceptions while reading saved stream", true); + + + in = new FileInputStream(new File(cwd, "37684-2.xls")); + wb = new HSSFWorkbook(in); + in.close(); + + assertTrue("No exceptions while reading workbook", true); + + //serialize and read again + out = new ByteArrayOutputStream(); + wb.write(out); + out.close(); + assertTrue("No exceptions while saving workbook", true); + + wb = new HSSFWorkbook(new ByteArrayInputStream(out.toByteArray())); + assertTrue("No exceptions while reading saved stream", true); + } } -- 2.39.5