summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoberto Tyley <roberto.tyley@gmail.com>2012-04-10 10:07:21 +0100
committerRoberto Tyley <roberto.tyley@gmail.com>2012-05-17 15:31:37 +0100
commitbd8db8ba4a8acde6b2217aebebb13d0551c2fc5d (patch)
tree8899fc03af6069298c687421feb74c98deacb158
parent9f9ab0da69691e69ba874fd96f68934c2a20346b (diff)
downloadandroid_external_spongycastle-bd8db8ba4a8acde6b2217aebebb13d0551c2fc5d.tar.gz
android_external_spongycastle-bd8db8ba4a8acde6b2217aebebb13d0551c2fc5d.tar.bz2
android_external_spongycastle-bd8db8ba4a8acde6b2217aebebb13d0551c2fc5d.zip
Relax test assertin based on the The German Locale time format
The Time Format has changed on recent JVMs: http://bugs.sun.com/view_bug.do?bug_id=6609737
-rw-r--r--bcprov-jdk15on/src/test/java/org/bouncycastle/i18n/test/LocalizedMessageTest.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/bcprov-jdk15on/src/test/java/org/bouncycastle/i18n/test/LocalizedMessageTest.java b/bcprov-jdk15on/src/test/java/org/bouncycastle/i18n/test/LocalizedMessageTest.java
index 2459abb6e..b3ae875d7 100644
--- a/bcprov-jdk15on/src/test/java/org/bouncycastle/i18n/test/LocalizedMessageTest.java
+++ b/bcprov-jdk15on/src/test/java/org/bouncycastle/i18n/test/LocalizedMessageTest.java
@@ -62,7 +62,7 @@ public class LocalizedMessageTest extends TestCase
assertEquals("It's 1:12:00 PM GMT at Aug 17, 2006.", msg.getEntry(
"text", Locale.ENGLISH, TimeZone.getTimeZone("GMT")));
assertEquals("Es ist 13.12 Uhr GMT am 17.08.2006.", msg.getEntry(
- "text", Locale.GERMAN, TimeZone.getTimeZone("GMT")));
+ "text", Locale.GERMAN, TimeZone.getTimeZone("GMT")).replace(":","."));
// test time with filter
args = new Object[] { new TrustedInput(testDate) };
@@ -71,7 +71,7 @@ public class LocalizedMessageTest extends TestCase
assertEquals("It's 1:12:00 PM GMT at Aug 17, 2006.", msg.getEntry(
"text", Locale.ENGLISH, TimeZone.getTimeZone("GMT")));
assertEquals("Es ist 13.12 Uhr GMT am 17.08.2006.", msg.getEntry(
- "text", Locale.GERMAN, TimeZone.getTimeZone("GMT")));
+ "text", Locale.GERMAN, TimeZone.getTimeZone("GMT")).replace(":","."));
// test number
args = new Object[] { new TrustedInput(new Float(0.2)) };