/libcore/ojluni/src/test/java/time/tck/java/time/format/ |
D | TCKDateTimeParseResolver.java | 156 TemporalAccessor accessor = f.parse(str); in test_resolveOneNoChange() local 157 assertEquals(accessor.query(TemporalQueries.localDate()), null); in test_resolveOneNoChange() 158 assertEquals(accessor.query(TemporalQueries.localTime()), null); in test_resolveOneNoChange() 159 assertEquals(accessor.isSupported(field1), true); in test_resolveOneNoChange() 160 assertEquals(accessor.getLong(field1), value1); in test_resolveOneNoChange() 194 TemporalAccessor accessor = f.parse(str); in test_resolveTwoNoChange() local 196 assertEquals(accessor.query(TemporalQueries.localDate()), null); in test_resolveTwoNoChange() 197 assertEquals(accessor.query(TemporalQueries.localTime()), null); in test_resolveTwoNoChange() 198 assertEquals(accessor.isSupported(field1), true); in test_resolveTwoNoChange() 199 assertEquals(accessor.isSupported(field2), true); in test_resolveTwoNoChange() [all …]
|
D | TCKResolverStyle.java | 126 TemporalAccessor accessor = formatter.parse(str); in test_resolverStyle() local 127 assertEquals(accessor.get(ChronoField.YEAR_OF_ERA), year); in test_resolverStyle() 128 assertEquals(accessor.get(ChronoField.MONTH_OF_YEAR), month); in test_resolverStyle() 129 assertEquals(accessor.get(ChronoField.DAY_OF_MONTH), day); in test_resolverStyle()
|
/libcore/luni/src/test/java/libcore/java/lang/invoke/ |
D | MethodHandleAccessorsTest.java | 443 AccessorType accessor) throws Throwable { in tryAccessor() argument 447 resultFor(primitive, PrimitiveType.Boolean, accessor, AccessorType.IPUT)); in tryAccessor() 449 resultFor(primitive, PrimitiveType.Boolean, accessor, AccessorType.SPUT)); in tryAccessor() 451 resultFor(primitive, PrimitiveType.Boolean, accessor, AccessorType.IGET)); in tryAccessor() 453 resultFor(primitive, PrimitiveType.Boolean, accessor, AccessorType.SGET)); in tryAccessor() 457 resultFor(primitive, PrimitiveType.Byte, accessor, AccessorType.IPUT)); in tryAccessor() 459 resultFor(primitive, PrimitiveType.Byte, accessor, AccessorType.SPUT)); in tryAccessor() 461 resultFor(primitive, PrimitiveType.Byte, accessor, AccessorType.IGET)); in tryAccessor() 463 resultFor(primitive, PrimitiveType.Byte, accessor, AccessorType.SGET)); in tryAccessor() 467 resultFor(primitive, PrimitiveType.Char, accessor, AccessorType.IPUT)); in tryAccessor() [all …]
|
/libcore/ojluni/src/test/java/time/tck/java/time/temporal/ |
D | TCKChronoField.java | 240 …public void test_supportedAccessor(ChronoField field, TemporalAccessor accessor, boolean isSupport… in test_supportedAccessor() argument 241 assertEquals(field.isSupportedBy(accessor), isSupported); in test_supportedAccessor() 243 assertEquals(field.getFrom(accessor), value); in test_supportedAccessor()
|
/libcore/ojluni/src/test/java/time/test/java/time/chrono/ |
D | TestUmmAlQuraChronology.java | 667 …public void test_zonedDateTime(TemporalAccessor accessor, HijrahDate expectedDate, LocalTime expe… in test_zonedDateTime() argument 669 … ChronoZonedDateTime<HijrahDate> result = HijrahChronology.INSTANCE.zonedDateTime(accessor); in test_zonedDateTime() 671 assertEquals(HijrahDate.from(accessor), expectedDate); in test_zonedDateTime() 676 … ChronoZonedDateTime<HijrahDate> result = HijrahChronology.INSTANCE.zonedDateTime(accessor); in test_zonedDateTime() 719 …public void test_localDateTime(TemporalAccessor accessor, HijrahDate expectedDate, LocalTime expe… in test_localDateTime() argument 721 … ChronoLocalDateTime<HijrahDate> result = HijrahChronology.INSTANCE.localDateTime(accessor); in test_localDateTime() 723 assertEquals(HijrahDate.from(accessor), expectedDate); in test_localDateTime() 727 … ChronoLocalDateTime<HijrahDate> result = HijrahChronology.INSTANCE.localDateTime(accessor); in test_localDateTime()
|
/libcore/ojluni/src/test/java/time/tck/java/time/chrono/ |
D | TCKMinguoChronology.java | 425 …public void test_localDateTime(TemporalAccessor accessor, MinguoDate expectedDate, LocalTime expe… in test_localDateTime() argument 427 … ChronoLocalDateTime<MinguoDate> result = MinguoChronology.INSTANCE.localDateTime(accessor); in test_localDateTime() 429 assertEquals(MinguoDate.from(accessor), expectedDate); in test_localDateTime() 433 … ChronoLocalDateTime<MinguoDate> result = MinguoChronology.INSTANCE.localDateTime(accessor); in test_localDateTime() 459 …public void test_zonedDateTime(TemporalAccessor accessor, MinguoDate expectedDate, LocalTime expe… in test_zonedDateTime() argument 461 … ChronoZonedDateTime<MinguoDate> result = MinguoChronology.INSTANCE.zonedDateTime(accessor); in test_zonedDateTime() 463 assertEquals(MinguoDate.from(accessor), expectedDate); in test_zonedDateTime() 468 … ChronoZonedDateTime<MinguoDate> result = MinguoChronology.INSTANCE.zonedDateTime(accessor); in test_zonedDateTime()
|