Search in sources :

Example 1 with DangiCalendar

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

the class DangiTest method TestCoverage.

@Test
public void TestCoverage() {
    // DangiCalendar()
    // DangiCalendar(Date)
    // DangiCalendar(TimeZone, ULocale)
    Date d = new Date();
    DangiCalendar cal1 = new DangiCalendar();
    cal1.setTime(d);
    DangiCalendar cal2 = new DangiCalendar(d);
    DangiCalendar cal3 = new DangiCalendar(TimeZone.getDefault(), ULocale.getDefault());
    cal3.setTime(d);
    assertEquals("DangiCalendar() and DangiCalendar(Date)", cal1, cal2);
    assertEquals("DangiCalendar() and DangiCalendar(TimeZone,ULocale)", cal1, cal3);
    // String getType()
    String type = cal1.getType();
    assertEquals("getType()", "dangi", type);
}
Also used : DangiCalendar(android.icu.util.DangiCalendar) Date(java.util.Date) Test(org.junit.Test)

Aggregations

DangiCalendar (android.icu.util.DangiCalendar)1 Date (java.util.Date)1 Test (org.junit.Test)1