assertEquals(TOKYO, chrono.getZone());
assertEquals(cutover.toInstant(), chrono.getGregorianCutover());
}
public void testFactory_Zone_RI_int() {
GJChronology chrono = GJChronology.getInstance(TOKYO, new Instant(0L), 2);
assertEquals(TOKYO, chrono.getZone());
assertEquals(new Instant(0L), chrono.getGregorianCutover());
assertEquals(2, chrono.getMinimumDaysInFirstWeek());
assertSame(GJChronology.class, GJChronology.getInstance(TOKYO, new Instant(0L), 2).getClass());
DateTime cutover = new DateTime(1582, 10, 15, 0, 0, 0, 0, DateTimeZone.UTC);
chrono = GJChronology.getInstance(TOKYO, null, 2);
assertEquals(TOKYO, chrono.getZone());
assertEquals(cutover.toInstant(), chrono.getGregorianCutover());
assertEquals(2, chrono.getMinimumDaysInFirstWeek());
try {
GJChronology.getInstance(TOKYO, new Instant(0L), 0);
fail();
} catch (IllegalArgumentException ex) {}
try {
GJChronology.getInstance(TOKYO, new Instant(0L), 8);
fail();
} catch (IllegalArgumentException ex) {}
}