From: Dominik Stadler Date: Thu, 26 Jan 2017 19:59:05 +0000 (+0000) Subject: Finally enable test for bug 44937, we got the requested missing test-documents a... X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=41e52ffea7aca2440790bb8cfba5b88cf361f31c;p=poi.git Finally enable test for bug 44937, we got the requested missing test-documents a long time ago already. git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1780456 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/scratchpad/testcases/org/apache/poi/hwpf/TestHWPFPictures.java b/src/scratchpad/testcases/org/apache/poi/hwpf/TestHWPFPictures.java index e065b0999b..9b48b2322a 100644 --- a/src/scratchpad/testcases/org/apache/poi/hwpf/TestHWPFPictures.java +++ b/src/scratchpad/testcases/org/apache/poi/hwpf/TestHWPFPictures.java @@ -45,7 +45,8 @@ public final class TestHWPFPictures extends TestCase { private String imgDFile; @Override - protected void setUp() { + protected void setUp() throws Exception { + super.setUp(); docAFile = "testPictures.doc"; docBFile = "two_images.doc"; @@ -161,7 +162,7 @@ public final class TestHWPFPictures extends TestCase { * Pending the missing files being uploaded to * bug #44937 */ - public void BROKENtestEscherDrawing() { + public void testEscherDrawing() { HWPFDocument docD = HWPFTestDataSamples.openSampleFile(docDFile); List allPictures = docD.getPicturesTable().getAllPictures(); diff --git a/test-data/document/GaiaTest.doc b/test-data/document/GaiaTest.doc new file mode 100644 index 0000000000..4e7f07bdb9 Binary files /dev/null and b/test-data/document/GaiaTest.doc differ diff --git a/test-data/document/GaiaTestImg.png b/test-data/document/GaiaTestImg.png new file mode 100644 index 0000000000..1ebd99139c Binary files /dev/null and b/test-data/document/GaiaTestImg.png differ