Search in sources :

Example 1 with TaiwanCalendar

use of android.icu.util.TaiwanCalendar in project j2objc by google.

the class IBMCalendarTest method TestTaiwanLimits.

/**
 * Test limits of the Taiwan calendar.
 */
@Test
public void TestTaiwanLimits() {
    // Final parameter is either number of days, if > 0, or test
    // duration in seconds, if < 0.
    Calendar cal = Calendar.getInstance();
    cal.set(2007, Calendar.JANUARY, 1);
    TaiwanCalendar taiwan = new TaiwanCalendar();
    doLimitsTest(taiwan, null, cal.getTime());
    doTheoreticalLimitsTest(taiwan, false);
}
Also used : ChineseCalendar(android.icu.util.ChineseCalendar) TaiwanCalendar(android.icu.util.TaiwanCalendar) GregorianCalendar(android.icu.util.GregorianCalendar) BuddhistCalendar(android.icu.util.BuddhistCalendar) Calendar(android.icu.util.Calendar) JapaneseCalendar(android.icu.util.JapaneseCalendar) TaiwanCalendar(android.icu.util.TaiwanCalendar) Test(org.junit.Test)

Aggregations

BuddhistCalendar (android.icu.util.BuddhistCalendar)1 Calendar (android.icu.util.Calendar)1 ChineseCalendar (android.icu.util.ChineseCalendar)1 GregorianCalendar (android.icu.util.GregorianCalendar)1 JapaneseCalendar (android.icu.util.JapaneseCalendar)1 TaiwanCalendar (android.icu.util.TaiwanCalendar)1 Test (org.junit.Test)1