From a475de57859147d89aebf0fede9a2fcce094a417 Mon Sep 17 00:00:00 2001 From: Sergey Vladimirov Date: Tue, 25 Sep 2012 21:42:09 +0000 Subject: [PATCH] add 4th example file from Bug 53380 git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1390167 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/poi/hwpf/usermodel/TestBugs.java | 14 +++++++++++--- test-data/document/Bug53380_4.doc | Bin 0 -> 34304 bytes 2 files changed, 11 insertions(+), 3 deletions(-) create mode 100644 test-data/document/Bug53380_4.doc diff --git a/src/scratchpad/testcases/org/apache/poi/hwpf/usermodel/TestBugs.java b/src/scratchpad/testcases/org/apache/poi/hwpf/usermodel/TestBugs.java index 70b362027..7fadde76f 100644 --- a/src/scratchpad/testcases/org/apache/poi/hwpf/usermodel/TestBugs.java +++ b/src/scratchpad/testcases/org/apache/poi/hwpf/usermodel/TestBugs.java @@ -767,7 +767,7 @@ public class TestBugs extends TestCase } /** - * Bug 53380 - ArrayIndexOutOfBounds Excetion parsing word 97 document + * Bug 53380 - ArrayIndexOutOfBounds Exception parsing word 97 document */ public void testBug53380_1() throws Exception { @@ -775,7 +775,7 @@ public class TestBugs extends TestCase } /** - * Bug 53380 - ArrayIndexOutOfBounds Excetion parsing word 97 document + * Bug 53380 - ArrayIndexOutOfBounds Exception parsing word 97 document */ public void testBug53380_2() throws Exception { @@ -783,10 +783,18 @@ public class TestBugs extends TestCase } /** - * Bug 53380 - ArrayIndexOutOfBounds Excetion parsing word 97 document + * Bug 53380 - ArrayIndexOutOfBounds Exception parsing word 97 document */ public void testBug53380_3() throws Exception { HWPFTestDataSamples.openSampleFile( "Bug53380_3.doc" ); } + + /** + * Bug 53380 - ArrayIndexOutOfBounds Exception parsing word 97 document + */ + public void testBug53380_4() throws Exception + { + HWPFTestDataSamples.openSampleFile( "Bug53380_4.doc" ); + } } diff --git a/test-data/document/Bug53380_4.doc b/test-data/document/Bug53380_4.doc new file mode 100644 index 0000000000000000000000000000000000000000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