[libwoodstox-java] 06/07: Fix a test.

Giovanni Mascellani gio at moszumanska.debian.org
Sat Sep 10 16:44:55 UTC 2016


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

gio pushed a commit to branch master
in repository libwoodstox-java.

commit 1fefe555b05864c5bd29013e3818df6dd334ef19
Author: Giovanni Mascellani <gio at debian.org>
Date:   Sat Sep 10 18:38:51 2016 +0200

    Fix a test.
---
 debian/patches/0002-Fix-a-test.patch | 26 ++++++++++++++++++++++++++
 debian/patches/series                |  1 +
 2 files changed, 27 insertions(+)

diff --git a/debian/patches/0002-Fix-a-test.patch b/debian/patches/0002-Fix-a-test.patch
new file mode 100644
index 0000000..17039da
--- /dev/null
+++ b/debian/patches/0002-Fix-a-test.patch
@@ -0,0 +1,26 @@
+From: Giovanni Mascellani <gio at debian.org>
+Date: Sat, 10 Sep 2016 18:37:27 +0200
+Subject: Fix a test.
+
+A woodstox test depends on an error string being returned in English,
+so is broken when a different locale is set.
+
+This patch tests the exception class name instead of its message,
+which does not depend on the locale.
+---
+ src/test/java/wstxtest/sax/TestEntityResolver.java | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/test/java/wstxtest/sax/TestEntityResolver.java b/src/test/java/wstxtest/sax/TestEntityResolver.java
+index 1b3e890..bd294dc 100644
+--- a/src/test/java/wstxtest/sax/TestEntityResolver.java
++++ b/src/test/java/wstxtest/sax/TestEntityResolver.java
+@@ -38,7 +38,7 @@ public class TestEntityResolver
+         try {
+             sp.parse(new InputSource(new StringReader(XML)), h);
+         } catch (SAXException e) {
+-            verifyException(e, "No such file or directory");
++            verifyException(e, "java.io.FileNotFoundException");
+         }
+ 
+         // And then with dummy resolver; should work ok now
diff --git a/debian/patches/series b/debian/patches/series
index 8fe6784..3d30773 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
 0001-Fix-interface-mismatch-between-woodstox-and-osgi.patch
+0002-Fix-a-test.patch

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



More information about the pkg-java-commits mailing list