diff options
author | Roberto Tyley <roberto.tyley@gmail.com> | 2012-04-10 10:07:21 +0100 |
---|---|---|
committer | Roberto Tyley <roberto.tyley@gmail.com> | 2013-03-18 18:14:54 +0000 |
commit | 5e2baab07bd5ca31497c70f43032b2b1a07c06f4 (patch) | |
tree | 466d39e7ae139787e47e5220f5a535fd11bf37ef | |
parent | 07ef6f04ea6ab305965edb5b9f87d878f65a4b1f (diff) | |
download | android_external_spongycastle-5e2baab07bd5ca31497c70f43032b2b1a07c06f4.tar.gz android_external_spongycastle-5e2baab07bd5ca31497c70f43032b2b1a07c06f4.tar.bz2 android_external_spongycastle-5e2baab07bd5ca31497c70f43032b2b1a07c06f4.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.java | 4 |
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)) }; |