/libcore/ojluni/src/test/java/time/test/java/time/format/ |
D | AbstractTestPrinterParser.java | 117 return builder.toFormatter(locale).withDecimalStyle(decimalStyle); in getFormatter() 121 return builder.appendLiteral(c).toFormatter(locale).withDecimalStyle(decimalStyle); in getFormatter() 125 return builder.appendLiteral(s).toFormatter(locale).withDecimalStyle(decimalStyle); in getFormatter() 129 return builder.appendText(field).toFormatter(locale).withDecimalStyle(decimalStyle); in getFormatter() 133 return builder.appendText(field, style).toFormatter(locale).withDecimalStyle(decimalStyle); in getFormatter() 137 …return builder.appendValue(field, minWidth, maxWidth, signStyle).toFormatter(locale).withDecimalSt… in getFormatter() 141 …return builder.appendOffset(pattern, noOffsetText).toFormatter(locale).withDecimalStyle(decimalSty… in getFormatter() 145 return builder.appendPattern(pattern).toFormatter(locale).withDecimalStyle(decimalStyle); in getPatternFormatter()
|
D | TestDateTimeFormatterBuilder.java | 109 DateTimeFormatter f = builder.toFormatter(); in test_toFormatter_empty() 117 DateTimeFormatter f = builder.toFormatter(); in test_parseCaseSensitive() 124 DateTimeFormatter f = builder.toFormatter(); in test_parseCaseInsensitive() 132 DateTimeFormatter f = builder.toFormatter(); in test_parseStrict() 139 DateTimeFormatter f = builder.toFormatter(); in test_parseLenient() 147 DateTimeFormatter f = builder.toFormatter(); in test_appendValue_1arg() 160 DateTimeFormatter f = builder.toFormatter(); in test_appendValue_2arg() 183 DateTimeFormatter f = builder.toFormatter(); in test_appendValue_3arg() 226 DateTimeFormatter f = builder.toFormatter(); in test_appendValue_subsequent2_parse3() 236 DateTimeFormatter f = builder.toFormatter(); in test_appendValue_subsequent2_parse4() [all …]
|
D | TestDateTimeParsing.java | 94 .appendPattern("yyyy-MM-dd HH:mm:ss").toFormatter(); 96 .appendPattern("yyyy-MM-dd HH:mm:ss ").appendZoneId().toFormatter(); 98 .appendPattern("yyyy-MM-dd HH:mm:ss ").appendOffsetId().toFormatter(); 102 .appendInstant().toFormatter(); 106 .appendInstant().appendLiteral(' ').appendOffsetId().toFormatter(); 108 .appendInstant().appendLiteral(' ').appendValue(OFFSET_SECONDS).toFormatter(); 110 .appendValue(INSTANT_SECONDS).toFormatter(); 113 .appendValue(INSTANT_SECONDS).appendLiteral('.').appendValue(NANO_OF_SECOND).toFormatter(); 116 .appendValue(INSTANT_SECONDS).appendLiteral(' ').appendValue(OFFSET_SECONDS).toFormatter();
|
D | TestReducedPrinter.java | 84 …return builder.appendValueReduced(field, width, width, baseValue).toFormatter(locale).withDecimalS… in getFormatter0() 88 …return builder.appendValueReduced(field, minWidth, maxWidth, baseValue).toFormatter(locale).withDe… in getFormatter0() 92 …ValueReduced(field, minWidth, maxWidth, LocalDate.of(baseValue, 1, 1)).toFormatter(locale).withDec… in getFormatterBaseDate() 272 DateTimeFormatter dtf = builder.toFormatter(); in test_printAdjacent()
|
D | TestReducedParser.java | 100 …return builder.appendValueReduced(field, width, width, baseValue).toFormatter(locale).withDecimalS… in getFormatter0() 104 …return builder.appendValueReduced(field, minWidth, maxWidth, baseValue).toFormatter(locale).withDe… in getFormatter0() 108 …ValueReduced(field, minWidth, maxWidth, LocalDate.of(baseValue, 1, 1)).toFormatter(locale).withDec… in getFormatterBaseDate() 372 DateTimeFormatter dtf = builder.toFormatter(); in test_parseAdjacent() 416 .toFormatter() in test_reducedWithChronoYear() 434 .toFormatter() in test_reducedWithChronoYearOfEra() 456 .toFormatter(); in test_reducedWithLateChronoChange() 480 .toFormatter(); in test_reducedWithLateChronoChangeTwice()
|
D | TestZoneTextPrinterParser.java | 65 .toFormatter(locale) in getFormatter() 193 .toFormatter(locale) in test_ParseText() 254 .toFormatter(locale) in getFormatter()
|
/libcore/ojluni/src/test/java/time/tck/java/time/format/ |
D | TCKPadPrinterParser.java | 95 builder.toFormatter().parseUnresolved("--Z", new ParsePosition(-1)); in test_parse_negativePosition() 101 builder.toFormatter().parseUnresolved("--Z", new ParsePosition(4)); in test_parse_offEndPosition() 132 TemporalAccessor parsed = builder.toFormatter().parseUnresolved(text, pos); in test_parseStrict() 173 TemporalAccessor parsed = builder.toFormatter().parseUnresolved(text, pos); in test_parseLenient() 188 TemporalAccessor parsed = builder.toFormatter().parseUnresolved("--HELLO-", pos); in test_parse_decoratedStartsWithPad() 197 TemporalAccessor parsed = builder.toFormatter().parseUnresolved("--2", pos); in test_parse_decoratedStartsWithPad_number() 208 TemporalAccessor parsed = builder.toFormatter().parseUnresolved("----", pos); in test_parse_decoratedEmpty_strict() 217 TemporalAccessor parsed = builder.toFormatter().parseUnresolved("----", pos); in test_parse_decoratedEmpty_lenient()
|
D | TCKChronoPrinterParser.java | 98 builder.appendChronologyId().toFormatter().parseUnresolved("ISO", new ParsePosition(-1)); in test_parse_negativePosition() 103 builder.appendChronologyId().toFormatter().parseUnresolved("ISO", new ParsePosition(4)); in test_parse_offEndPosition() 123 TemporalAccessor parsed = builder.toFormatter().parseUnresolved(text, pos); in test_parseValid_caseSensitive() 132 …TemporalAccessor parsed = builder.toFormatter().parseUnresolved(text.toLowerCase(Locale.ENGLISH), … in test_parseValid_caseSensitive_lowercaseRejected() 141 …TemporalAccessor parsed = builder.toFormatter().parseUnresolved(text.toLowerCase(Locale.ENGLISH), … in test_parseValid_caseInsensitive() 161 TemporalAccessor parsed = builder.toFormatter().parseUnresolved(text, pos); in test_parseInvalid()
|
D | TCKDateTimeFormatterBuilder.java | 104 DateTimeFormatter f = builder.toFormatter(); in test_toFormatter_empty() 113 .parseDefaulting(DAY_OF_MONTH, 30).toFormatter(); in test_parseDefaulting_entireDate() 126 .parseDefaulting(DAY_OF_MONTH, 1).toFormatter(); in test_parseDefaulting_yearOptionalMonthOptionalDay() 383 DateTimeFormatter f = builder.toFormatter(); in test_appendOffset_format() 391 DateTimeFormatter f = builder.toFormatter(); in test_appendOffset_parse() 442 assertEquals(builder.toFormatter().format(LocalDate.of(2013, 2, 1)), "2: 1"); in test_padNext_1arg() 454 assertEquals(builder.toFormatter().format(LocalDate.of(2013, 2, 1)), "2:-1"); in test_padNext_2arg_dash() 468 assertEquals(builder.toFormatter().format(LocalDate.of(2013, 2, 1)), "2: 1:2013"); in test_padOptional() 469 assertEquals(builder.toFormatter().format(YearMonth.of(2013, 2)), "2: :2013"); in test_padOptional() 726 DateTimeFormatter f = builder.appendPattern(input).toFormatter(Locale.UK); in test_appendPattern_patternPrint() [all …]
|
D | TCKDateTimeParseResolver.java | 154 DateTimeFormatter f = new DateTimeFormatterBuilder().appendValue(field1).toFormatter(); in test_resolveOneNoChange() 193 .appendValue(field2).toFormatter(); in test_resolveTwoNoChange() 225 .appendValue(field3).toFormatter(); in test_resolveThreeNoChange() 259 DateTimeFormatter f = new DateTimeFormatterBuilder().appendValue(field1).toFormatter(); in test_resolveOneToField() 285 DateTimeFormatter f = new DateTimeFormatterBuilder().appendValue(field1).toFormatter(); in test_resolveOneToDate() 310 DateTimeFormatter f = new DateTimeFormatterBuilder().appendValue(field1).toFormatter(); in test_resolveOneToTime() 341 .appendValue(field2).toFormatter(); in test_resolveTwoToField() 389 .appendValue(field2).toFormatter(); in test_resolveTwoToDate() 476 .appendValue(field2).toFormatter(); in test_resolveTwoToTime() 509 .appendValue(field3).toFormatter(); in test_resolveThreeToDate() [all …]
|
D | TCKInstantPrinterParser.java | 113 DateTimeFormatter f = new DateTimeFormatterBuilder().appendInstant().toFormatter(); in test_print_grouped() 191 …DateTimeFormatter f = new DateTimeFormatterBuilder().appendInstant(fractionalDigits).toFormatter(); in test_print_digits() 227 DateTimeFormatter f = new DateTimeFormatterBuilder().appendInstant(-1).toFormatter(); in test_parse_digitsMinusOne() 235 DateTimeFormatter f = new DateTimeFormatterBuilder().appendInstant(9).toFormatter(); in test_parse_digitsNine() 254 DateTimeFormatter f = new DateTimeFormatterBuilder().appendInstant(-1).toFormatter(); in test_parse_endOfDay() 266 DateTimeFormatter f = new DateTimeFormatterBuilder().appendInstant(-1).toFormatter(); in test_parse_leapSecond()
|
D | TCKOffsetPrinterParser.java | 237 String output = builder.toFormatter().format(zdt); in test_print() 259 String output = builder.toFormatter().format(zdt); in test_print_pattern_X() 287 String output = builder.toFormatter().format(zdt); in test_print_pattern_x() 297 DateTimeFormatter f1 = new DateTimeFormatterBuilder().appendPattern("Z").toFormatter(); in test_print_pattern_Z() 301 DateTimeFormatter f2 = new DateTimeFormatterBuilder().appendPattern("ZZ").toFormatter(); in test_print_pattern_Z() 305 … DateTimeFormatter f3 = new DateTimeFormatterBuilder().appendPattern("ZZZ").toFormatter(); in test_print_pattern_Z() 310 … DateTimeFormatter f = new DateTimeFormatterBuilder().appendPattern("ZZZZZ").toFormatter(); in test_print_pattern_Z() 322 .toFormatter(); in test_print_localized() 329 .toFormatter(); in test_print_localized() 335 .toFormatter(); in test_print_localized() [all …]
|
D | TCKZoneIdPrinterParser.java | 118 String output = builder.toFormatter().format(zdt); in test_print() 126 String output = builder.toFormatter().format(zdt); in test_print_pattern_VV() 213 TemporalAccessor parsed = builder.toFormatter().parseUnresolved(text, pos); in test_parseSuccess_plain() 230 TemporalAccessor parsed = builder.toFormatter().parseUnresolved(prefixText, pos); in test_parseSuccess_prefix() 246 TemporalAccessor parsed = builder.toFormatter().parseUnresolved(suffixText, pos); in test_parseSuccess_suffix() 262 TemporalAccessor parsed = builder.toFormatter().parseUnresolved(lcText, pos); in test_parseSuccess_caseSensitive() 285 TemporalAccessor parsed = builder.toFormatter().parseUnresolved(lcText, pos); in test_parseSuccess_caseInsensitive()
|
D | TCKDateTimeTextPrinting.java | 140 DateTimeFormatter f = builder.appendText(field, style).toFormatter(Locale.ENGLISH); in test_appendText2arg_format() 150 DateTimeFormatter f = builder.appendText(field).toFormatter(Locale.ENGLISH); in test_appendText1arg_format() 175 DateTimeFormatter f = builder.toFormatter(); in test_appendTextMap() 189 DateTimeFormatter f = builder.toFormatter(); in test_appendTextMap_DOM() 201 DateTimeFormatter f = builder.toFormatter(); in test_appendTextMapIncomplete()
|
D | TCKLocalizedFieldParser.java | 120 DateTimeFormatter dtf = b.toFormatter(locale); in test_parse_textField() 152 DateTimeFormatter dtf = b.toFormatter(locale); in test_parse_textLocalDate() 189 DateTimeFormatter dtf = b.toFormatter(locale); in test_parse_WeekBasedYear()
|
D | TCKLocalizedPrinterParser.java | 149 DateTimeFormatter f = builder.appendLocalized(dateStyle, null).toFormatter(locale); in test_date_print() 161 DateTimeFormatter f = builder.appendLocalized(dateStyle, null).toFormatter(locale); in test_date_parse() 202 DateTimeFormatter f = builder.appendLocalized(null, timeStyle).toFormatter(locale); in test_time_print() 214 DateTimeFormatter f = builder.appendLocalized(null, timeStyle).toFormatter(locale); in test_time_parse()
|
D | TCKResolverStyle.java | 121 …ew DateTimeFormatterBuilder().appendLiteral(" ").appendText(ChronoField.ERA, eraMap).toFormatter(); in test_resolverStyle() 123 DateTimeFormatter formatter = builder.appendOptional(optionalFormatter).toFormatter(); in test_resolverStyle()
|
D | TCKDateTimeFormatter.java | 131 .toFormatter(); in setUp() 177 … .appendValue(DAY_OF_MONTH).appendLiteral('-').appendValue(DAY_OF_YEAR).toFormatter(); in test_resolverFields_selectOneDateResolveYMD() 193 … .appendValue(DAY_OF_MONTH).appendLiteral('-').appendValue(DAY_OF_YEAR).toFormatter(); in test_resolverFields_selectOneDateResolveYD() 212 .appendValue(DAY_OF_WEEK).toFormatter(); in test_resolverFields_ignoreCrossCheck() 227 .appendValue(YEAR).toFormatter().withResolverFields(); in test_resolverFields_emptyList() 235 .appendValue(YEAR).toFormatter().withResolverFields(YEAR); in test_resolverFields_listOfOneMatching() 243 .appendValue(YEAR).toFormatter().withResolverFields(MONTH_OF_YEAR); in test_resolverFields_listOfOneNotMatching() 252 .appendValue(YEAR).toFormatter().withResolverFields((TemporalField) null); in test_resolverFields_listOfOneNull() 362 .toFormatter(Locale.ENGLISH) in test_format_withZone_withChronology() 394 .toFormatter(Locale.ENGLISH) in test_format_withChronology_nonChronoFieldMapLink() [all …]
|
/libcore/luni/src/test/java/libcore/java/time/format/ |
D | DateTimeFormatterTest.java | 41 new DateTimeFormatterBuilder().toFormatter(), in test_getDecimalStyle() 42 new DateTimeFormatterBuilder().toFormatter(Locale.ROOT), in test_getDecimalStyle() 43 new DateTimeFormatterBuilder().toFormatter(Locale.ENGLISH), in test_getDecimalStyle() 44 new DateTimeFormatterBuilder().toFormatter(arLocale), in test_getDecimalStyle()
|
D | DateTimeFormatterBuilderTest.java | 46 .toFormatter(Locale.ROOT); in test_append_DateTimeFormatter() 53 new DateTimeFormatterBuilder().appendZoneRegionId().toFormatter(); in test_appendZoneRegionId_format() 64 new DateTimeFormatterBuilder().appendZoneRegionId().toFormatter(); in test_appendZoneRegionId_format_offset() 76 .toFormatter(); in test_appendZoneRegionId_parse()
|
/libcore/ojluni/src/main/java/java/time/format/ |
D | DateTimeFormatter.java | 536 return new DateTimeFormatterBuilder().appendPattern(pattern).toFormatter(); in ofPattern() 560 return new DateTimeFormatterBuilder().appendPattern(pattern).toFormatter(locale); in ofPattern() 589 .toFormatter(ResolverStyle.SMART, IsoChronology.INSTANCE); in ofLocalizedDate() 617 .toFormatter(ResolverStyle.SMART, IsoChronology.INSTANCE); in ofLocalizedTime() 645 .toFormatter(ResolverStyle.SMART, IsoChronology.INSTANCE); in ofLocalizedDateTime() 675 .toFormatter(ResolverStyle.SMART, IsoChronology.INSTANCE); in ofLocalizedDateTime() 710 .toFormatter(ResolverStyle.STRICT, IsoChronology.INSTANCE); 738 .toFormatter(ResolverStyle.STRICT, IsoChronology.INSTANCE); 771 .toFormatter(ResolverStyle.STRICT, IsoChronology.INSTANCE); 812 .toFormatter(ResolverStyle.STRICT, null); [all …]
|
/libcore/ojluni/src/test/java/time/tck/java/time/temporal/ |
D | TCKIsoFields.java | 157 .toFormatter().withResolverStyle(ResolverStyle.STRICT); in test_parse_quarters() 168 .toFormatter().withResolverStyle(ResolverStyle.SMART); in test_parse_quarters_SMART() 179 .toFormatter().withResolverStyle(ResolverStyle.LENIENT); in test_parse_quarters_LENIENT() 214 .toFormatter().withResolverStyle(ResolverStyle.STRICT); in test_parse_parseLenientQuarter_STRICT() 224 .toFormatter().withResolverStyle(ResolverStyle.SMART); in test_parse_parseLenientQuarter_SMART() 244 .toFormatter().withResolverStyle(ResolverStyle.LENIENT); in test_parse_parseLenientQuarter_LENIENT() 356 .toFormatter().withResolverStyle(ResolverStyle.STRICT); in test_parse_weeks_STRICT() 367 .toFormatter().withResolverStyle(ResolverStyle.SMART); in test_parse_weeks_SMART() 378 .toFormatter().withResolverStyle(ResolverStyle.LENIENT); in test_parse_weeks_LENIENT() 406 .toFormatter().withResolverStyle(ResolverStyle.STRICT); in test_parse_parseLenientWeek_STRICT() [all …]
|
D | TCKJulianFields.java | 145 .toFormatter().withResolverStyle(ResolverStyle.STRICT); in test_samples_parse_STRICT() 153 .toFormatter().withResolverStyle(ResolverStyle.SMART); in test_samples_parse_SMART() 161 .toFormatter().withResolverStyle(ResolverStyle.LENIENT); in test_samples_parse_LENIENT()
|
D | TCKWeekFields.java | 389 .appendValue(DAY_OF_WEEK).toFormatter().withResolverStyle(SMART); in test_parse_resolve_localizedWom() 410 .appendValue(DAY_OF_WEEK).toFormatter().withResolverStyle(LENIENT); in test_parse_resolve_localizedWom_lenient() 431 .appendValue(DAY_OF_WEEK).toFormatter().withResolverStyle(STRICT); in test_parse_resolve_localizedWom_strict() 457 .appendValue(dowField).toFormatter(); in test_parse_resolve_localizedWomDow() 479 .appendValue(dowField).toFormatter().withResolverStyle(LENIENT); in test_parse_resolve_localizedWomDow_lenient() 503 .appendValue(DAY_OF_WEEK).toFormatter(); in test_parse_resolve_localizedWoy() 523 .appendValue(DAY_OF_WEEK).toFormatter().withResolverStyle(LENIENT); in test_parse_resolve_localizedWoy_lenient() 543 .appendValue(DAY_OF_WEEK).toFormatter().withResolverStyle(STRICT); in test_parse_resolve_localizedWoy_strict() 568 .appendValue(dowField).toFormatter(); in test_parse_resolve_localizedWoyDow() 589 .appendValue(dowField).toFormatter().withResolverStyle(LENIENT); in test_parse_resolve_localizedWoyDow_lenient() [all …]
|
/libcore/ojluni/src/test/java/time/test/java/time/temporal/ |
D | TestDateTimeBuilderCombinations.java | 149 TemporalAccessor parsed = dtfb.toFormatter().parse(str); in test_derive() 201 DateTimeFormatter f = new DateTimeFormatterBuilder().appendValue(field1).toFormatter(); in test_normalized()
|