Skip to content

Commit bb7ca2c

Browse files
committed
Fix tests to allow old and new time-zone data to compile
Not happy with the activities of the TZDB maintainer
1 parent a9e6638 commit bb7ca2c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/test/java/org/joda/time/TestDateTimeZone.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,6 @@ public void testForID_String_old() {
264264
map.put("AGT", "America/Argentina/Buenos_Aires");
265265
map.put("BET", "America/Sao_Paulo");
266266
map.put("ART", "Africa/Cairo");
267-
map.put("CAT", "Africa/Harare");
268267
map.put("EAT", "Africa/Addis_Ababa");
269268
map.put("NET", "Asia/Yerevan");
270269
map.put("PLT", "Asia/Karachi");
@@ -287,6 +286,11 @@ public void testForID_String_old() {
287286
// System.out.println(zone);
288287
// System.out.println("------");
289288
}
289+
// gee thanks time-zone db maintainer for damaging the database
290+
// and breaking the long-standing association with CAT
291+
TimeZone juZone = TimeZone.getTimeZone("CAT");
292+
DateTimeZone zone = DateTimeZone.forTimeZone(juZone);
293+
assertTrue(zone.getID().equals("Africa/Harare") || zone.getID().equals("Africa/Maputo"));
290294
}
291295

292296
//-----------------------------------------------------------------------

0 commit comments

Comments
 (0)