Enable reproducer test for bug 56880 after it was fixed.

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1753121 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Dominik Stadler 2016-07-17 21:17:51 +00:00
parent a118ec77d4
commit 412ae950c2

View File

@ -16,11 +16,7 @@
==================================================================== */ ==================================================================== */
package org.apache.poi.hwpf.usermodel; package org.apache.poi.hwpf.usermodel;
import java.io.*; import junit.framework.TestCase;
import java.util.Arrays;
import java.util.Collection;
import java.util.List;
import org.apache.commons.codec.digest.DigestUtils; import org.apache.commons.codec.digest.DigestUtils;
import org.apache.poi.POIDataSamples; import org.apache.poi.POIDataSamples;
import org.apache.poi.hwpf.HWPFDocument; import org.apache.poi.hwpf.HWPFDocument;
@ -40,8 +36,13 @@ import org.apache.poi.util.IOUtils;
import org.apache.poi.util.POILogFactory; import org.apache.poi.util.POILogFactory;
import org.apache.poi.util.POILogger; import org.apache.poi.util.POILogger;
import junit.framework.TestCase; import java.io.ByteArrayOutputStream;
import org.junit.Ignore; import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
import java.util.Arrays;
import java.util.Collection;
import java.util.List;
/** /**
* Test different problems reported in the Apache Bugzilla * Test different problems reported in the Apache Bugzilla
@ -799,14 +800,14 @@ public class TestBugs extends TestCase
* *
* Disabled pending a fix for the bug * Disabled pending a fix for the bug
*/ */
public void DISABLEDtest56880() throws Exception { public void test56880() throws Exception {
HWPFDocument doc = HWPFDocument doc =
HWPFTestDataSamples.openSampleFile("56880.doc"); HWPFTestDataSamples.openSampleFile("56880.doc");
assertEqualsIgnoreNewline("Check Request", doc.getRange().text()); assertEqualsIgnoreNewline("Check Request", doc.getRange().text());
} }
// These are the values the are explected to be read when the file // These are the values the are expected to be read when the file
// is checked. // is checked.
private int section1LeftMargin = 1440; private int section1LeftMargin = 1440;
private int section1RightMargin = 1440; private int section1RightMargin = 1440;