Exemplo n.º 1
0
 @Test
 public void test_ThaiBuddhistChronology_dateYearDay() {
   Chronology chrono = Chronology.of("ThaiBuddhist");
   ChronoLocalDate date1 = chrono.dateYearDay(ThaiBuddhistEra.BE, 2459, 60);
   ChronoLocalDate date2 = chrono.date(ThaiBuddhistEra.BE, 2459, 2, 29);
   assertEquals(date1, ThaiBuddhistChronology.INSTANCE.dateYearDay(ThaiBuddhistEra.BE, 2459, 60));
   assertEquals(date2, ThaiBuddhistChronology.INSTANCE.dateYearDay(ThaiBuddhistEra.BE, 2459, 60));
 }
Exemplo n.º 2
0
 @Test
 public void test_JapaneseChronology_dateYearDay() {
   Chronology chrono = Chronology.of("Japanese");
   ChronoLocalDate date1 = chrono.dateYearDay(JapaneseEra.HEISEI, 8, 60);
   ChronoLocalDate date2 = chrono.date(JapaneseEra.HEISEI, 8, 2, 29);
   assertEquals(date1, JapaneseChronology.INSTANCE.dateYearDay(JapaneseEra.HEISEI, 8, 60));
   assertEquals(date2, JapaneseChronology.INSTANCE.dateYearDay(JapaneseEra.HEISEI, 8, 60));
 }
Exemplo n.º 3
0
 @Test
 public void test_MinguoChronology_dateYearDay() {
   Chronology chrono = Chronology.of("Minguo");
   ChronoLocalDate date1 = chrono.dateYearDay(MinguoEra.ROC, 5, 60);
   ChronoLocalDate date2 = chrono.date(MinguoEra.ROC, 5, 2, 29);
   assertEquals(date1, MinguoChronology.INSTANCE.dateYearDay(MinguoEra.ROC, 5, 60));
   assertEquals(date2, MinguoChronology.INSTANCE.dateYearDay(MinguoEra.ROC, 5, 60));
 }
Exemplo n.º 4
0
 @Test
 public void test_IsoChronology_dateYearDay() {
   Chronology chrono = Chronology.of("ISO");
   ChronoLocalDate date1 = chrono.dateYearDay(IsoEra.CE, 5, 60);
   ChronoLocalDate date2 = chrono.date(IsoEra.CE, 5, 3, 1);
   assertEquals(date1, IsoChronology.INSTANCE.dateYearDay(IsoEra.CE, 5, 60));
   assertEquals(date2, IsoChronology.INSTANCE.dateYearDay(IsoEra.CE, 5, 60));
 }
Exemplo n.º 5
0
 // -----------------------------------------------------------------------
 // dateYearDay() and date()
 // -----------------------------------------------------------------------
 @Test
 public void test_HijrahChronology_dateYearDay() {
   Chronology chrono = Chronology.of("Hijrah");
   ChronoLocalDate date1 = chrono.dateYearDay(HijrahEra.AH, 1434, 178);
   ChronoLocalDate date2 = chrono.date(HijrahEra.AH, 1434, 7, 1);
   assertEquals(date1, HijrahChronology.INSTANCE.dateYearDay(HijrahEra.AH, 1434, 178));
   assertEquals(date2, HijrahChronology.INSTANCE.dateYearDay(HijrahEra.AH, 1434, 178));
 }