Home
last modified time | relevance | path

Searched refs:localDate (Results 1 – 25 of 30) sorted by relevance

12

/libcore/luni/src/test/java/libcore/java/time/chrono/
DIsoChronologyTest.java56 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/
DTCKDateTimeParseResolver.java157 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 …]
DTCKSignStyle.java119 …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/
DTestOffsetDateTime.java109 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
DTestLocalDateTime.java536 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/
DTemporalQueries.java313 public static TemporalQuery<LocalDate> localDate() { in localDate() method in TemporalQueries
/libcore/ojluni/src/test/java/time/tck/java/time/chrono/
DTCKIsoChronology.java171 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()
DTCKJapaneseChronology.java237 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/
DTestUmmAlQuraChronology.java592 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/
DTCKOffsetDateTime.java513 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)},
DTCKZonedDateTime.java832 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);
DTCKDayOfWeek.java224 {DayOfWeek.FRIDAY, TemporalQueries.localDate(), null}, in data_query()
DTCKMonth.java216 {Month.JUNE, TemporalQueries.localDate(), null}, in data_query()
DTCKZoneOffset.java532 {ZoneOffset.UTC, TemporalQueries.localDate(), null}, in data_query()
DTCKMonthDay.java440 {TEST_07_15, TemporalQueries.localDate(), null}, in data_query()
DTCKLocalDateTime.java1026 … {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);
DTCKYear.java420 {TEST_2008, TemporalQueries.localDate(), null}, in data_query()
/libcore/ojluni/src/main/java/java/time/
DOffsetDateTime.java354 LocalDate date = temporal.query(TemporalQueries.localDate()); in from()
1543 } else if (query == TemporalQueries.localDate()) { in query()
DLocalDate.java359 LocalDate date = temporal.query(TemporalQueries.localDate()); in from()
1512 if (query == TemporalQueries.localDate()) { in query()
DOffsetTime.java1075 …Queries.zoneId() | query == TemporalQueries.chronology() || query == TemporalQueries.localDate()) { in query()
DInstant.java1056 query == TemporalQueries.localDate() || query == TemporalQueries.localTime()) { in query()
DLocalTime.java1291 } else if (query == TemporalQueries.localDate()) { in query()
DZonedDateTime.java2039 if (query == TemporalQueries.localDate()) { in query()
DLocalDateTime.java1590 if (query == TemporalQueries.localDate()) { in query()
/libcore/ojluni/src/main/java/java/time/format/
DParsed.java215 } else if (query == TemporalQueries.localDate()) { in query()

12