From 0bd50defba893db3fd6ded5181c532aac7672a65 Mon Sep 17 00:00:00 2001 From: Nick Burch Date: Thu, 9 Oct 2014 17:58:47 +0000 Subject: [PATCH] Add a disabled unit test for bug #56880 git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1630543 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/poi/hwpf/usermodel/TestBugs.java | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) 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 09b022610..5f0a7ee28 100644 --- a/src/scratchpad/testcases/org/apache/poi/hwpf/usermodel/TestBugs.java +++ b/src/scratchpad/testcases/org/apache/poi/hwpf/usermodel/TestBugs.java @@ -26,13 +26,12 @@ import java.util.List; import junit.framework.TestCase; -import org.apache.poi.hwpf.converter.WordToTextConverter; - import org.apache.commons.codec.digest.DigestUtils; import org.apache.poi.POIDataSamples; import org.apache.poi.hwpf.HWPFDocument; import org.apache.poi.hwpf.HWPFOldDocument; import org.apache.poi.hwpf.HWPFTestDataSamples; +import org.apache.poi.hwpf.converter.WordToTextConverter; import org.apache.poi.hwpf.extractor.Word6Extractor; import org.apache.poi.hwpf.extractor.WordExtractor; import org.apache.poi.hwpf.model.FieldsDocumentPart; @@ -743,4 +742,16 @@ public class TestBugs extends TestCase { HWPFTestDataSamples.openSampleFile( "Bug53380_4.doc" ); } + + /** + * java.lang.UnsupportedOperationException: Non-extended character + * Pascal strings are not supported right now + * + * Disabled pending a fix for the bug + */ + public void DISABLEDtest56880() throws Exception { + HWPFDocument doc = + HWPFTestDataSamples.openSampleFile("56880.doc"); + assertEquals("Check Request", doc.getRange().text()); + } }