Skip to content

Commit

Permalink
Fix tests to allow old and new time-zone data to compile
Browse files Browse the repository at this point in the history
Not happy with the activities of the TZDB maintainer
  • Loading branch information
jodastephen committed Oct 2, 2014
1 parent a9e6638 commit bb7ca2c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/test/java/org/joda/time/TestDateTimeZone.java
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,6 @@ public void testForID_String_old() {
map.put("AGT", "America/Argentina/Buenos_Aires");
map.put("BET", "America/Sao_Paulo");
map.put("ART", "Africa/Cairo");
map.put("CAT", "Africa/Harare");
map.put("EAT", "Africa/Addis_Ababa");
map.put("NET", "Asia/Yerevan");
map.put("PLT", "Asia/Karachi");
Expand All @@ -287,6 +286,11 @@ public void testForID_String_old() {
// System.out.println(zone);
// System.out.println("------");
}
// gee thanks time-zone db maintainer for damaging the database
// and breaking the long-standing association with CAT
TimeZone juZone = TimeZone.getTimeZone("CAT");
DateTimeZone zone = DateTimeZone.forTimeZone(juZone);
assertTrue(zone.getID().equals("Africa/Harare") || zone.getID().equals("Africa/Maputo"));
}

//-----------------------------------------------------------------------
Expand Down

0 comments on commit bb7ca2c

Please sign in to comment.