test/java/time/test/java/time/temporal/TestThaiBuddhistChronoImpl.java

Print this page

        

@@ -63,12 +63,13 @@
 import java.util.TimeZone;
 
 import java.time.LocalDate;
 import java.time.temporal.ChronoField;
 import java.time.temporal.ChronoUnit;
-import java.time.temporal.ChronoLocalDate;
-import java.time.calendar.ThaiBuddhistChrono;
+import java.time.chrono.ChronoLocalDate;
+import java.time.chrono.ThaiBuddhistChronology;
+import java.time.chrono.ThaiBuddhistDate;
 
 import org.testng.annotations.Test;
 import org.testng.annotations.DataProvider;
 
 /**

@@ -95,11 +96,11 @@
         Locale locale = Locale.forLanguageTag("th-TH--u-ca-buddhist");
         assertEquals(locale.toString(), "th_TH", "Unexpected locale");
         Calendar cal = java.util.Calendar.getInstance(locale);
         assertEquals(cal.getCalendarType(), "buddhist", "Unexpected calendar type");
 
-        ChronoLocalDate<ThaiBuddhistChrono> thaiDate = ThaiBuddhistChrono.INSTANCE.date(isoStartDate);
+        ThaiBuddhistDate thaiDate = ThaiBuddhistChronology.INSTANCE.date(isoStartDate);
 
         cal.setTimeZone(TimeZone.getTimeZone("GMT+00"));
         cal.set(Calendar.YEAR, thaiDate.get(ChronoField.YEAR));
         cal.set(Calendar.MONTH, thaiDate.get(ChronoField.MONTH_OF_YEAR) - 1);
         cal.set(Calendar.DAY_OF_MONTH, thaiDate.get(ChronoField.DAY_OF_MONTH));