759 {HijrahDate.of(1436,1,1), ThaiBuddhistDate.of(2557,10,25)}, 760 {HijrahDate.of(1500,6,12), ThaiBuddhistDate.of(2620,5,5)}, 761 {HijrahDate.of(1550,3,11), ThaiBuddhistDate.of(2668,8,11)}, 762 }; 763 } 764 765 // Test to verify the date conversion from Hijrah to Thai chronology 766 @Test(dataProvider="hijrahToThai") 767 public void test_hijrahToThai(HijrahDate hijrah, ThaiBuddhistDate thai) { 768 assertEquals(ThaiBuddhistChronology.INSTANCE.date(hijrah), thai); 769 } 770 771 // Sample Hijrah & Japanese Dates 772 @DataProvider(name="hijrahToJapanese") 773 Object[][] data_hijrahToJapanese() { 774 return new Object[][] { 775 {HijrahDate.of(1350,5,15), "Japanese Showa 6-09-28"}, 776 {HijrahDate.of(1434,5,1), "Japanese Heisei 25-03-13"}, 777 {HijrahDate.of(1436,1,1), "Japanese Heisei 26-10-25"}, 778 {HijrahDate.of(1440,8,25), "Japanese Heisei 31-04-30"}, 779 {HijrahDate.of(1440,8,26), "Japanese NewEra 1-05-01"}, 780 {HijrahDate.of(1500,6,12), "Japanese NewEra 59-05-05"}, 781 {HijrahDate.of(1550,3,11), "Japanese NewEra 107-08-11"}, 782 }; 783 } 784 785 // Test to verify the date conversion from Hijrah to Japanese chronology 786 @Test(dataProvider="hijrahToJapanese") 787 public void test_hijrahToJapanese(HijrahDate hijrah, String japanese) { 788 assertEquals(JapaneseChronology.INSTANCE.date(hijrah).toString(), japanese); 789 } 790 } | 759 {HijrahDate.of(1436,1,1), ThaiBuddhistDate.of(2557,10,25)}, 760 {HijrahDate.of(1500,6,12), ThaiBuddhistDate.of(2620,5,5)}, 761 {HijrahDate.of(1550,3,11), ThaiBuddhistDate.of(2668,8,11)}, 762 }; 763 } 764 765 // Test to verify the date conversion from Hijrah to Thai chronology 766 @Test(dataProvider="hijrahToThai") 767 public void test_hijrahToThai(HijrahDate hijrah, ThaiBuddhistDate thai) { 768 assertEquals(ThaiBuddhistChronology.INSTANCE.date(hijrah), thai); 769 } 770 771 // Sample Hijrah & Japanese Dates 772 @DataProvider(name="hijrahToJapanese") 773 Object[][] data_hijrahToJapanese() { 774 return new Object[][] { 775 {HijrahDate.of(1350,5,15), "Japanese Showa 6-09-28"}, 776 {HijrahDate.of(1434,5,1), "Japanese Heisei 25-03-13"}, 777 {HijrahDate.of(1436,1,1), "Japanese Heisei 26-10-25"}, 778 {HijrahDate.of(1440,8,25), "Japanese Heisei 31-04-30"}, 779 {HijrahDate.of(1440,8,26), "Japanese Reiwa 1-05-01"}, 780 {HijrahDate.of(1500,6,12), "Japanese Reiwa 59-05-05"}, 781 {HijrahDate.of(1550,3,11), "Japanese Reiwa 107-08-11"}, 782 }; 783 } 784 785 // Test to verify the date conversion from Hijrah to Japanese chronology 786 @Test(dataProvider="hijrahToJapanese") 787 public void test_hijrahToJapanese(HijrahDate hijrah, String japanese) { 788 assertEquals(JapaneseChronology.INSTANCE.date(hijrah).toString(), japanese); 789 } 790 } |