/libcore/ojluni/src/test/java/time/tck/java/time/chrono/ |
D | TCKChronology.java | 172 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/ |
D | HijrahChronologyTest.java | 58 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/ |
D | X509CertSelectorTest.java | 313 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/ |
D | TestJapaneseChronology.java | 215 JapaneseDate date1 = JAPANESE.dateYearDay(era, yearOfEra, dayOfYear); in test_firstDayOfEra() local 217 assertEquals(date1, date2); in test_firstDayOfEra()
|
D | TestUmmAlQuraChronology.java | 242 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/ |
D | X509CRLTest.java | 362 private static void assertDateEquals(Date date1, Date date2) throws Exception { in assertDateEquals() argument 365 String result1 = formatter.format(date1); in assertDateEquals()
|
D | X509CertificateTest.java | 605 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/ |
D | AbstractChronology.java | 133 (Comparator<ChronoLocalDate> & Serializable) (date1, date2) -> { 134 return Long.compare(date1.toEpochDay(), date2.toEpochDay());
|
/libcore/ojluni/src/test/java/time/tck/java/time/ |
D | TCKLocalDate.java | 1730 …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);
|