/libcore/ojluni/src/test/java/time/tck/java/time/chrono/ |
D | TCKChronology.java | 192 ChronoLocalDate date1 = chrono.dateNow(); in test_epoch() local 193 long epoch1 = date1.getLong(ChronoField.EPOCH_DAY); in test_epoch() 194 ChronoLocalDate date2 = date1.with(ChronoField.EPOCH_DAY, epoch1); in test_epoch() 195 … assertEquals(date1, date2, "Date from epoch day is not same date: " + date1 + " != " + date2); in test_epoch() 196 long epoch2 = date1.getLong(ChronoField.EPOCH_DAY); in test_epoch() 290 ChronoLocalDate date1 = chrono.dateYearDay(HijrahEra.AH, 1434, 178); in test_HijrahChronology_dateYearDay() local 292 assertEquals(date1, HijrahChronology.INSTANCE.dateYearDay(HijrahEra.AH, 1434, 178)); in test_HijrahChronology_dateYearDay() 299 ChronoLocalDate date1 = chrono.dateYearDay(MinguoEra.ROC, 5, 60); in test_MinguoChronology_dateYearDay() local 301 assertEquals(date1, MinguoChronology.INSTANCE.dateYearDay(MinguoEra.ROC, 5, 60)); in test_MinguoChronology_dateYearDay() 308 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 | 59 HijrahDate date1 = HijrahDate.now(); in test_HijrahDate_withVariant_same() local 60 HijrahDate date2 = date1.withVariant(HijrahChronology.INSTANCE); in test_HijrahDate_withVariant_same() 61 assertSame(date1, date2); in test_HijrahDate_withVariant_same()
|
/libcore/ojluni/src/main/java/java/time/chrono/ |
D | ChronoLocalDate.java | 260 return (Comparator<ChronoLocalDate> & Serializable) (date1, date2) -> { in timeLineOrder() 261 return Long.compare(date1.toEpochDay(), date2.toEpochDay()); in timeLineOrder()
|
/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 | 199 JapaneseDate date1 = JAPANESE.dateYearDay(era, yearOfEra, dayOfYear); in test_firstDayOfEra() local 201 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/test/java/time/tck/java/time/ |
D | TCKLocalDate.java | 1799 …public void test_until_TemporalUnit(LocalDate date1, LocalDate date2, TemporalUnit unit, long expe… 1800 long amount = date1.until(date2, unit); 1805 …public void test_until_TemporalUnit_negated(LocalDate date1, LocalDate date2, TemporalUnit unit, l… 1806 long amount = date2.until(date1, unit); 1811 …public void test_until_TemporalUnit_between(LocalDate date1, LocalDate date2, TemporalUnit unit, l… 1812 long amount = unit.between(date1, date2);
|