From a118ec77d4414cf6d13b8345814e9d17ab58d58c Mon Sep 17 00:00:00 2001 From: Dominik Stadler Date: Sun, 17 Jul 2016 21:17:45 +0000 Subject: [PATCH] Add commented reproducer for bug 57603 git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1753120 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/poi/hwpf/usermodel/TestBugs.java | 12 ++++++++---- test-data/document/57603-seven_columns.doc | Bin 0 -> 42496 bytes 2 files changed, 8 insertions(+), 4 deletions(-) create mode 100644 test-data/document/57603-seven_columns.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 1a9ba9d20..2d9110df7 100644 --- a/src/scratchpad/testcases/org/apache/poi/hwpf/usermodel/TestBugs.java +++ b/src/scratchpad/testcases/org/apache/poi/hwpf/usermodel/TestBugs.java @@ -16,10 +16,7 @@ ==================================================================== */ package org.apache.poi.hwpf.usermodel; -import java.io.ByteArrayOutputStream; -import java.io.FileNotFoundException; -import java.io.IOException; -import java.io.InputStream; +import java.io.*; import java.util.Arrays; import java.util.Collection; import java.util.List; @@ -44,6 +41,7 @@ import org.apache.poi.util.POILogFactory; import org.apache.poi.util.POILogger; import junit.framework.TestCase; +import org.junit.Ignore; /** * Test different problems reported in the Apache Bugzilla @@ -896,4 +894,10 @@ public class TestBugs extends TestCase HWPFDocument hwpfDocument = HWPFTestDataSamples.openSampleFile("cap.stanford.edu_profiles_viewbiosketch_facultyid=4009&name=m_maciver.doc"); assertNotNull(hwpfDocument); } + + public void DISABLEDtest57603SevenRowTable() throws Exception { + HWPFDocument hwpfDocument = HWPFTestDataSamples.openSampleFile("57603-seven_columns.doc"); + HWPFDocument hwpfDocument2 = HWPFTestDataSamples.writeOutAndReadBack(hwpfDocument); + assertNotNull(hwpfDocument2); + } } diff --git a/test-data/document/57603-seven_columns.doc b/test-data/document/57603-seven_columns.doc new file mode 100644 index 0000000000000000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