/libcore/ojluni/src/test/java/time/tck/java/time/chrono/ |
D | TCKChronoLocalDate.java | 119 ChronoLocalDate date2 = chrono2.date(refDate); in test_badWithAdjusterChrono() local 120 TemporalAdjuster adjuster = new FixedAdjuster(date2); in test_badWithAdjusterChrono() 131 assertEquals(result, date2, "WithAdjuster failed to replace date"); in test_badWithAdjusterChrono() 142 ChronoLocalDate date2 = chrono2.date(refDate); in test_badPlusAdjusterChrono() local 143 TemporalAmount adjuster = new FixedAdjuster(date2); in test_badPlusAdjusterChrono() 154 assertEquals(result, date2, "WithAdjuster failed to replace date"); in test_badPlusAdjusterChrono() 165 ChronoLocalDate date2 = chrono2.date(refDate); in test_badMinusAdjusterChrono() local 166 TemporalAmount adjuster = new FixedAdjuster(date2); in test_badMinusAdjusterChrono() 177 assertEquals(result, date2, "WithAdjuster failed to replace date"); in test_badMinusAdjusterChrono() 188 ChronoLocalDate date2 = chrono2.date(refDate); in test_badPlusTemporalUnitChrono() local [all …]
|
D | TCKChronology.java | 194 ChronoLocalDate date2 = date1.with(ChronoField.EPOCH_DAY, epoch1); in test_epoch() local 195 … assertEquals(date1, date2, "Date from epoch day is not same date: " + date1 + " != " + date2); in test_epoch() 291 ChronoLocalDate date2 = chrono.date(HijrahEra.AH, 1434, 7, 1); in test_HijrahChronology_dateYearDay() local 293 assertEquals(date2, HijrahChronology.INSTANCE.dateYearDay(HijrahEra.AH, 1434, 178)); in test_HijrahChronology_dateYearDay() 300 ChronoLocalDate date2 = chrono.date(MinguoEra.ROC, 5, 2, 29); in test_MinguoChronology_dateYearDay() local 302 assertEquals(date2, MinguoChronology.INSTANCE.dateYearDay(MinguoEra.ROC, 5, 60)); in test_MinguoChronology_dateYearDay() 309 ChronoLocalDate date2 = chrono.date(IsoEra.CE, 5, 3, 1); in test_IsoChronology_dateYearDay() local 311 assertEquals(date2, IsoChronology.INSTANCE.dateYearDay(IsoEra.CE, 5, 60)); in test_IsoChronology_dateYearDay() 318 ChronoLocalDate date2 = chrono.date(JapaneseEra.HEISEI, 8, 2, 29); in test_JapaneseChronology_dateYearDay() local 320 assertEquals(date2, JapaneseChronology.INSTANCE.dateYearDay(JapaneseEra.HEISEI, 8, 60)); in test_JapaneseChronology_dateYearDay() [all …]
|
/libcore/luni/src/test/java/libcore/java/time/chrono/ |
D | HijrahChronologyTest.java | 60 HijrahDate date2 = date1.withVariant(HijrahChronology.INSTANCE); in test_HijrahDate_withVariant_same() local 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/ojluni/src/test/java/time/test/java/time/chrono/ |
D | TestJapaneseChronology.java | 200 JapaneseDate date2 = JAPANESE.date(era, yearOfEra, month, dayOfMonth); 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/tests/security/cert/ |
D | X509CertSelectorTest.java | 314 Date date2 = new Date(200); in test_getCertificateValid() local 327 date2.equals(selector.getCertificateValid())); in test_getCertificateValid() 590 Date date2 = new Date(200); in test_getPrivateKeyValid() local 601 date2.equals(selector.getPrivateKeyValid())); in test_getPrivateKeyValid() 908 Date date2 = new Date(200); in test_setCertificateValidLjava_util_Date() local 910 TestCert cert2 = new TestCert(date2); in test_setCertificateValidLjava_util_Date() 919 selector.setCertificateValid(date2); in test_setCertificateValidLjava_util_Date() 920 date2.setTime(300); in test_setCertificateValidLjava_util_Date() 1238 Date date2 = new Date(200000000); in test_setPrivateKeyValidLjava_util_Date() local 1242 TestCert cert1 = new TestCert(date1, date2); in test_setPrivateKeyValidLjava_util_Date() [all …]
|
/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 366 String result2 = formatter.format(date2); in assertDateEquals()
|
D | X509CertificateTest.java | 605 private static void assertDateEquals(Date date1, Date date2) throws Exception { in assertDateEquals() argument 609 String result2 = formatter.format(date2); 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);
|
/libcore/luni/src/test/java/libcore/java/text/ |
D | SimpleDateFormatTest.java | 478 Date date2 = sdf.parse("2016-01-06T23:05:49.480+00:00"); in testLenientParsingForZ() local 479 assertEquals(date, date2); in testLenientParsingForZ()
|