]> source.dussan.org Git - poi.git/commitdiff
Finally enable test for bug 44937, we got the requested missing test-documents a...
authorDominik Stadler <centic@apache.org>
Thu, 26 Jan 2017 19:59:05 +0000 (19:59 +0000)
committerDominik Stadler <centic@apache.org>
Thu, 26 Jan 2017 19:59:05 +0000 (19:59 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1780456 13f79535-47bb-0310-9956-ffa450edef68

src/scratchpad/testcases/org/apache/poi/hwpf/TestHWPFPictures.java
test-data/document/GaiaTest.doc [new file with mode: 0644]
test-data/document/GaiaTestImg.png [new file with mode: 0644]

index e065b0999b662035278383d348d374d17106a369..9b48b2322a8845357be14702d39a77b70c502dc6 100644 (file)
@@ -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<Picture> allPictures = docD.getPicturesTable().getAllPictures();
 
diff --git a/test-data/document/GaiaTest.doc b/test-data/document/GaiaTest.doc
new file mode 100644 (file)
index 0000000..4e7f07b
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 (file)
index 0000000..1ebd991
Binary files /dev/null and b/test-data/document/GaiaTestImg.png differ