/libcore/luni/src/test/java/libcore/java/time/chrono/ |
D | IsoChronologyTest.java | 56 LocalDate localDate = IsoChronology.INSTANCE.dateYearDay(values[0], values[1]); in test_dateYear() local 58 assertEquals(expectedEra, localDate.getEra()); in test_dateYear() 59 assertEquals(values[0], localDate.getYear()); in test_dateYear() 60 assertEquals(values[1], localDate.getDayOfYear()); in test_dateYear() 61 assertEquals(values[2], localDate.get(ChronoField.YEAR_OF_ERA)); in test_dateYear() 62 assertEquals(values[3], localDate.getMonthValue()); in test_dateYear() 63 assertEquals(values[4], localDate.getDayOfMonth()); in test_dateYear() 82 LocalDate localDate = IsoChronology.INSTANCE.dateYearDay(values[0], values[1]); in test_dateYear_invalidValues() local 84 + localDate); in test_dateYear_invalidValues()
|
/libcore/ojluni/src/test/java/time/tck/java/time/format/ |
D | TCKDateTimeParseResolver.java | 157 assertEquals(accessor.query(TemporalQueries.localDate()), null); in test_resolveOneNoChange() 196 assertEquals(accessor.query(TemporalQueries.localDate()), null); in test_resolveTwoNoChange() 228 assertEquals(accessor.query(TemporalQueries.localDate()), null); in test_resolveThreeNoChange() 262 assertEquals(accessor.query(TemporalQueries.localDate()), null); in test_resolveOneToField() 288 assertEquals(accessor.query(TemporalQueries.localDate()), expectedDate); in test_resolveOneToDate() 313 assertEquals(accessor.query(TemporalQueries.localDate()), null); in test_resolveOneToTime() 344 assertEquals(accessor.query(TemporalQueries.localDate()), null); in test_resolveTwoToField() 392 assertEquals(accessor.query(TemporalQueries.localDate()), expectedDate); in test_resolveTwoToDate() 479 assertEquals(accessor.query(TemporalQueries.localDate()), null); in test_resolveTwoToTime() 512 assertEquals(accessor.query(TemporalQueries.localDate()), expectedDate); in test_resolveThreeToDate() [all …]
|
D | TCKSignStyle.java | 119 …public void test_signStyle(LocalDate localDate, SignStyle style, Class<?> expectedEx, String expec… in test_signStyle() argument 125 String output = formatter.format(localDate); in test_signStyle() 129 formatter.format(localDate); in test_signStyle()
|
/libcore/ojluni/src/test/java/time/test/java/time/ |
D | TestOffsetDateTime.java | 109 LocalDate localDate = LocalDate.of(y, o, d); in test_get_same() local 111 LocalDateTime localDateTime = LocalDateTime.of(localDate, localTime); in test_get_same() 115 assertSame(a.toLocalDate(), localDate); in test_get_same() local
|
D | TestLocalDateTime.java | 536 for (LocalDate localDate : localDates) { in test_comparisons_LocalDateTime() 538 localDateTimes[i++] = LocalDateTime.of(localDate, localTime); in test_comparisons_LocalDateTime()
|
/libcore/ojluni/src/main/java/java/time/temporal/ |
D | TemporalQueries.java | 313 public static TemporalQuery<LocalDate> localDate() { in localDate() method in TemporalQueries
|
/libcore/ojluni/src/test/java/time/tck/java/time/chrono/ |
D | TCKIsoChronology.java | 171 if (query == TemporalQueries.localDate()) { in test_date_TemporalAccessor() 210 if (query == TemporalQueries.localDate()) { in test_localDateTime_TemporalAccessor() 259 if (query == TemporalQueries.localDate()) { in test_zonedDateTime_TemporalAccessor()
|
D | TCKJapaneseChronology.java | 237 assertEquals(test.query(TemporalQueries.localDate()), iso); in test_createByEra_query() 305 assertEquals(test.query(TemporalQueries.localDate()), iso); in test_createByProleptic_query()
|
/libcore/ojluni/src/test/java/time/test/java/time/chrono/ |
D | TestUmmAlQuraChronology.java | 592 public void test_LocalDate_adjustToHijrahDate(ChronoLocalDate hijrahDate, LocalDate localDate) { in test_LocalDate_adjustToHijrahDate() argument 594 assertEquals(test, localDate); in test_LocalDate_adjustToHijrahDate() 599 …ublic void test_LocalDateTime_adjustToHijrahDate(ChronoLocalDate hijrahDate, LocalDate localDate) { in test_LocalDateTime_adjustToHijrahDate() argument 601 assertEquals(test, LocalDateTime.of(localDate, LocalTime.MIDNIGHT)); in test_LocalDateTime_adjustToHijrahDate()
|
/libcore/ojluni/src/test/java/time/tck/java/time/ |
D | TCKOffsetDateTime.java | 513 LocalDate localDate = LocalDate.of(y, o, d); 515 LocalDateTime localDateTime = LocalDateTime.of(localDate, localTime); 518 assertEquals(a.getYear(), localDate.getYear()); 519 assertEquals(a.getMonth(), localDate.getMonth()); 520 assertEquals(a.getDayOfMonth(), localDate.getDayOfMonth()); 521 assertEquals(a.getDayOfYear(), localDate.getDayOfYear()); 522 assertEquals(a.getDayOfWeek(), localDate.getDayOfWeek()); 648 … {TEST_2008_6_30_11_30_59_000000500, TemporalQueries.localDate(), LocalDate.of(2008, 6, 30)},
|
D | TCKZonedDateTime.java | 832 LocalDate localDate = LocalDate.of(y, o, d); 834 LocalDateTime localDateTime = LocalDateTime.of(localDate, localTime); 838 assertEquals(a.getYear(), localDate.getYear()); 839 assertEquals(a.getMonth(), localDate.getMonth()); 840 assertEquals(a.getDayOfMonth(), localDate.getDayOfMonth()); 841 assertEquals(a.getDayOfYear(), localDate.getDayOfYear()); 842 assertEquals(a.getDayOfWeek(), localDate.getDayOfWeek()); 849 assertEquals(a.toLocalDate(), localDate);
|
D | TCKDayOfWeek.java | 224 {DayOfWeek.FRIDAY, TemporalQueries.localDate(), null}, in data_query()
|
D | TCKMonth.java | 216 {Month.JUNE, TemporalQueries.localDate(), null}, in data_query()
|
D | TCKZoneOffset.java | 532 {ZoneOffset.UTC, TemporalQueries.localDate(), null}, in data_query()
|
D | TCKMonthDay.java | 440 {TEST_07_15, TemporalQueries.localDate(), null}, in data_query()
|
D | TCKLocalDateTime.java | 1026 … {TEST_2007_07_15_12_30_40_987654321, TemporalQueries.localDate(), LocalDate.of(2007, 7, 15)}, 3077 for (LocalDate localDate : localDates) { 3079 localDateTimes[i++] = LocalDateTime.of(localDate, localTime);
|
D | TCKYear.java | 420 {TEST_2008, TemporalQueries.localDate(), null}, in data_query()
|
/libcore/ojluni/src/main/java/java/time/ |
D | OffsetDateTime.java | 354 LocalDate date = temporal.query(TemporalQueries.localDate()); in from() 1543 } else if (query == TemporalQueries.localDate()) { in query()
|
D | LocalDate.java | 359 LocalDate date = temporal.query(TemporalQueries.localDate()); in from() 1512 if (query == TemporalQueries.localDate()) { in query()
|
D | OffsetTime.java | 1075 …Queries.zoneId() | query == TemporalQueries.chronology() || query == TemporalQueries.localDate()) { in query()
|
D | Instant.java | 1056 query == TemporalQueries.localDate() || query == TemporalQueries.localTime()) { in query()
|
D | LocalTime.java | 1291 } else if (query == TemporalQueries.localDate()) { in query()
|
D | ZonedDateTime.java | 2039 if (query == TemporalQueries.localDate()) { in query()
|
D | LocalDateTime.java | 1590 if (query == TemporalQueries.localDate()) { in query()
|
/libcore/ojluni/src/main/java/java/time/format/ |
D | Parsed.java | 215 } else if (query == TemporalQueries.localDate()) { in query()
|