[libitext5-java] 02/10: Skip tests by removing the according test files RemoteGifImageTest: requires online connection

Andreas Tille tille at debian.org
Tue Sep 30 13:53:48 UTC 2014


This is an automated email from the git hooks/post-receive script.

tille pushed a commit to branch master
in repository libitext5-java.

commit 09b2b5c7ba97b22b3ff9aee49064f4f0d0b4d9f4
Author: Andreas Tille <tille at debian.org>
Date:   Tue Sep 30 15:10:17 2014 +0200

    Skip tests by removing the according test files RemoteGifImageTest: requires online connection
---
 .../skip_test_requiring_online_connection.patch    | 48 ++++++++++++++++++++++
 1 file changed, 48 insertions(+)

diff --git a/debian/patches/skip_test_requiring_online_connection.patch b/debian/patches/skip_test_requiring_online_connection.patch
new file mode 100644
index 0000000..6615a47
--- /dev/null
+++ b/debian/patches/skip_test_requiring_online_connection.patch
@@ -0,0 +1,48 @@
+Author: Andreas Tille <tille at debian.org>
+Last-Changed: Fri, 26 Sep 2014 09:33:15 +0200
+Bug-Debian: http://bugs.debian.org/761172
+Description: Skip tests by removing the according test files
+ RemoteGifImageTest: requires online connection
+
+--- a/src/test/java/com/itextpdf/text/RemoteGifImageTest.java
++++ /dev/null
+@@ -1,39 +0,0 @@
+-package com.itextpdf.text;
+-
+-import com.itextpdf.text.pdf.PdfWriter;
+-import org.junit.Before;
+-import org.junit.Test;
+-
+-import java.io.File;
+-import java.io.FileOutputStream;
+-import java.io.IOException;
+-
+-public class RemoteGifImageTest {
+-
+-    private final String[] GIF_LOCATION = {
+-            "http://itextpdf.com/img/logo.gif",
+-            "http://itextsupport.com/files/testresources/img/remote_gif_test.gif",
+-            "./src/test/resources/com/itextpdf/text/Chunk/logo.gif" // non-remote gif
+-    };
+-    
+-    private final String OUTPUTFOLDER = "./target/com/itextpdf/test/image/";
+-
+-    @Before
+-    public void before() {
+-        new File(OUTPUTFOLDER).mkdirs();
+-    }
+-
+-    @Test
+-    public void remoteGifTest() throws IOException, DocumentException {
+-        for (int i = 0; i < GIF_LOCATION.length; i++) {
+-            Document document = new Document();
+-            PdfWriter.getInstance(document, new FileOutputStream(OUTPUTFOLDER + "gif_remote[" + i + "].pdf"));
+-            document.open();
+-
+-            Image img = Image.getInstance(GIF_LOCATION[i]);
+-            document.add(img);
+-
+-            document.close();
+-        }
+-    }
+-}

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/libitext5-java.git



More information about the pkg-java-commits mailing list