Home
last modified time | relevance | path

Searched refs:date1 (Results 1 – 9 of 9) sorted by relevance

/libcore/ojluni/src/test/java/time/tck/java/time/chrono/
DTCKChronology.java172 ChronoLocalDate date1 = chrono.dateNow(); in test_epoch() local
173 long epoch1 = date1.getLong(ChronoField.EPOCH_DAY); in test_epoch()
174 ChronoLocalDate date2 = date1.with(ChronoField.EPOCH_DAY, epoch1); in test_epoch()
175 … assertEquals(date1, date2, "Date from epoch day is not same date: " + date1 + " != " + date2); in test_epoch()
176 long epoch2 = date1.getLong(ChronoField.EPOCH_DAY); in test_epoch()
270 ChronoLocalDate date1 = chrono.dateYearDay(HijrahEra.AH, 1434, 178); in test_HijrahChronology_dateYearDay() local
272 assertEquals(date1, HijrahChronology.INSTANCE.dateYearDay(HijrahEra.AH, 1434, 178)); in test_HijrahChronology_dateYearDay()
279 ChronoLocalDate date1 = chrono.dateYearDay(MinguoEra.ROC, 5, 60); in test_MinguoChronology_dateYearDay() local
281 assertEquals(date1, MinguoChronology.INSTANCE.dateYearDay(MinguoEra.ROC, 5, 60)); in test_MinguoChronology_dateYearDay()
288 ChronoLocalDate date1 = chrono.dateYearDay(IsoEra.CE, 5, 60); in test_IsoChronology_dateYearDay() local
[all …]
/libcore/luni/src/test/java/libcore/java/time/chrono/
DHijrahChronologyTest.java58 HijrahDate date1 = HijrahDate.now(); in test_HijrahDate_withVariant_same() local
59 HijrahDate date2 = date1.withVariant(HijrahChronology.INSTANCE); in test_HijrahDate_withVariant_same()
60 assertSame(date1, date2); in test_HijrahDate_withVariant_same()
/libcore/luni/src/test/java/tests/security/cert/
DX509CertSelectorTest.java313 Date date1 = new Date(100); in test_getCertificateValid() local
320 selector.setCertificateValid(date1); in test_getCertificateValid()
322 date1.equals(selector.getCertificateValid())); in test_getCertificateValid()
325 date1.equals(selector.getCertificateValid())); in test_getCertificateValid()
589 Date date1 = new Date(100); in test_getPrivateKeyValid() local
594 selector.setPrivateKeyValid(date1); in test_getPrivateKeyValid()
596 date1.equals(selector.getPrivateKeyValid())); in test_getPrivateKeyValid()
599 date1.equals(selector.getPrivateKeyValid())); in test_getPrivateKeyValid()
907 Date date1 = new Date(100); in test_setCertificateValidLjava_util_Date() local
909 TestCert cert1 = new TestCert(date1); in test_setCertificateValidLjava_util_Date()
[all …]
/libcore/ojluni/src/test/java/time/test/java/time/chrono/
DTestJapaneseChronology.java215 JapaneseDate date1 = JAPANESE.dateYearDay(era, yearOfEra, dayOfYear); in test_firstDayOfEra() local
217 assertEquals(date1, date2); in test_firstDayOfEra()
DTestUmmAlQuraChronology.java242 public void test_DateYearDay(ChronoLocalDate date1, ChronoLocalDate date2) { in test_DateYearDay() argument
243 assertEquals(date1, date2); in test_DateYearDay()
/libcore/luni/src/test/java/libcore/java/security/cert/
DX509CRLTest.java362 private static void assertDateEquals(Date date1, Date date2) throws Exception { in assertDateEquals() argument
365 String result1 = formatter.format(date1); in assertDateEquals()
DX509CertificateTest.java605 private static void assertDateEquals(Date date1, Date date2) throws Exception { in assertDateEquals() argument
608 String result1 = formatter.format(date1); in assertDateEquals()
/libcore/ojluni/src/main/java/java/time/chrono/
DAbstractChronology.java133 (Comparator<ChronoLocalDate> & Serializable) (date1, date2) -> {
134 return Long.compare(date1.toEpochDay(), date2.toEpochDay());
/libcore/ojluni/src/test/java/time/tck/java/time/
DTCKLocalDate.java1730 …public void test_until_TemporalUnit(LocalDate date1, LocalDate date2, TemporalUnit unit, long expe…
1731 long amount = date1.until(date2, unit);
1736 …public void test_until_TemporalUnit_negated(LocalDate date1, LocalDate date2, TemporalUnit unit, l…
1737 long amount = date2.until(date1, unit);
1742 …public void test_until_TemporalUnit_between(LocalDate date1, LocalDate date2, TemporalUnit unit, l…
1743 long amount = unit.between(date1, date2);