()
| 386 | } |
| 387 | |
| 388 | @Test |
| 389 | public void normalize() { |
| 390 | assertThat(Timezone.normalize("Etc/GMT-7"), is(ZonalOffset.ofHours(OffsetSign.AHEAD_OF_UTC, 7))); |
| 391 | assertThat(Timezone.normalize("GMT-07"), is(ZonalOffset.ofHours(OffsetSign.BEHIND_UTC, 7))); |
| 392 | assertThat(Timezone.normalize("UTC+1"), is(ZonalOffset.ofHours(OffsetSign.AHEAD_OF_UTC, 1))); |
| 393 | assertThat(Timezone.normalize("+05:30"), is(ZonalOffset.ofHoursMinutes(OffsetSign.AHEAD_OF_UTC, 5, 30))); |
| 394 | } |
| 395 | |
| 396 | private static Object roundtrip(Object obj) |
| 397 | throws IOException, ClassNotFoundException { |
nothing calls this directly
no test coverage detected