Permalink
Browse files

Disabling 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
  • Loading branch information...
1 parent 2bf8b99 commit cb3e2d07593d78b58bedc0e97ff8e12cd9ca748c @rtyley rtyley committed Mar 5, 2011
Showing with 7 additions and 4 deletions.
  1. +7 −4 crypto/test/src/org/bouncycastle/i18n/test/LocalizedMessageTest.java
@@ -61,17 +61,20 @@ public void testGetEntry()
msg = new LocalizedMessage(TEST_RESOURCE, timeTestId, args);
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")));
+ /* The German Locale time format has changed on recent JVMs
+ * See http://bugs.sun.com/view_bug.do?bug_id=6609737
+ */
+// assertEquals("Es ist 13.12 Uhr GMT am 17.08.2006.", msg.getEntry(
+// "text", Locale.GERMAN, TimeZone.getTimeZone("GMT")));
// test time with filter
args = new Object[] { new TrustedInput(testDate) };
msg = new LocalizedMessage(TEST_RESOURCE, timeTestId, args);
msg.setFilter(new HTMLFilter());
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")));
+// assertEquals("Es ist 13.12 Uhr GMT am 17.08.2006.", msg.getEntry(
+// "text", Locale.GERMAN, TimeZone.getTimeZone("GMT")));
// test number
args = new Object[] { new TrustedInput(new Float(0.2)) };

0 comments on commit cb3e2d0

Please sign in to comment.