HomeSort by relevance Sort by last modified time
    Searched refs:LENIENT (Results 1 - 25 of 37) sorted by null

1 2

  /libcore/ojluni/src/main/java/java/time/format/
ResolverStyle.java 95 * field, which may be the same as strict, the same as lenient, or a third
107 * Using lenient resolution will resolve the values in an appropriate
108 * lenient manner. Individual fields will interpret this differently.
110 * For example, lenient mode allows the month in the ISO calendar system
114 LENIENT;
Parsed.java 261 // any lenient date resolution should return epoch-day
371 // lenient allows anything, smart allows 0-24, strict allows 1-24
379 // lenient allows anything, smart allows 0-12, strict allows 1-12
389 if (resolverStyle == ResolverStyle.LENIENT) {
399 if (resolverStyle != ResolverStyle.LENIENT) {
409 if (resolverStyle != ResolverStyle.LENIENT) {
417 if (resolverStyle != ResolverStyle.LENIENT) {
425 if (resolverStyle != ResolverStyle.LENIENT) {
434 if (resolverStyle != ResolverStyle.LENIENT) {
441 // combine partial second fields strictly, leaving lenient expansion to late
    [all...]
  /external/mockito/src/main/java/org/mockito/quality/
Strictness.java 25 * <li>{@link Strictness#LENIENT} - no added behavior.
53 LENIENT,
  /libcore/ojluni/src/test/java/time/tck/java/time/chrono/
TCKIsoChronology.java 286 {ResolverStyle.LENIENT, -1, null, null, null, null},
290 {ResolverStyle.LENIENT, 0, null, null, ChronoField.ERA, 0},
294 {ResolverStyle.LENIENT, 1, null, null, ChronoField.ERA, 1},
298 {ResolverStyle.LENIENT, 2, null, null, null, null},
303 {ResolverStyle.LENIENT, -1, 2012, null, null, null},
307 {ResolverStyle.LENIENT, 0, 2012, null, ChronoField.YEAR, -2011},
311 {ResolverStyle.LENIENT, 1, 2012, null, ChronoField.YEAR, 2012},
315 {ResolverStyle.LENIENT, 2, 2012, null, null, null},
320 {ResolverStyle.LENIENT, null, 2012, null, ChronoField.YEAR, 2012},
324 {ResolverStyle.LENIENT, null, Integer.MAX_VALUE, null, ChronoField.YEAR, Integer.MAX_VALUE}
    [all...]
TCKJapaneseChronology.java     [all...]
TCKMinguoChronology.java 561 {ResolverStyle.LENIENT, -1, null, null, null, null},
565 {ResolverStyle.LENIENT, 0, null, null, ChronoField.ERA, 0},
569 {ResolverStyle.LENIENT, 1, null, null, ChronoField.ERA, 1},
573 {ResolverStyle.LENIENT, 2, null, null, null, null},
578 {ResolverStyle.LENIENT, -1, 2012, null, null, null},
582 {ResolverStyle.LENIENT, 0, 2012, null, ChronoField.YEAR, -2011},
586 {ResolverStyle.LENIENT, 1, 2012, null, ChronoField.YEAR, 2012},
590 {ResolverStyle.LENIENT, 2, 2012, null, null, null},
595 {ResolverStyle.LENIENT, null, 2012, null, ChronoField.YEAR, 2012},
599 {ResolverStyle.LENIENT, null, Integer.MAX_VALUE, null, ChronoField.YEAR, Integer.MAX_VALUE}
    [all...]
TCKThaiBuddhistChronology.java 537 {ResolverStyle.LENIENT, -1, null, null, null, null},
541 {ResolverStyle.LENIENT, 0, null, null, ChronoField.ERA, 0},
545 {ResolverStyle.LENIENT, 1, null, null, ChronoField.ERA, 1},
549 {ResolverStyle.LENIENT, 2, null, null, null, null},
554 {ResolverStyle.LENIENT, -1, 2012, null, null, null},
558 {ResolverStyle.LENIENT, 0, 2012, null, ChronoField.YEAR, -2011},
562 {ResolverStyle.LENIENT, 1, 2012, null, ChronoField.YEAR, 2012},
566 {ResolverStyle.LENIENT, 2, 2012, null, null, null},
571 {ResolverStyle.LENIENT, null, 2012, null, ChronoField.YEAR, 2012},
575 {ResolverStyle.LENIENT, null, Integer.MAX_VALUE, null, ChronoField.YEAR, Integer.MAX_VALUE}
    [all...]
  /external/mockito/src/test/java/org/mockitousage/junitrule/
MutableStrictJUnitRuleTest.java 45 @Rule public MockitoRule mockito = MockitoJUnit.rule().strictness(Strictness.LENIENT);
69 //making Mockito lenient only for this test method
70 mockito.strictness(Strictness.LENIENT);
LenientJUnitRuleTest.java 27 @Rule public MockitoRule mockitoRule = new JUnitRule(explosiveLogger, Strictness.LENIENT);
  /libcore/ojluni/src/test/java/time/tck/java/time/format/
TCKDateTimeParseResolver.java 62 import static java.time.format.ResolverStyle.LENIENT;
564 {ResolverStyle.LENIENT, 14, 59, 60, 123456789, LocalTime.of(15, 0, 0, 123456789), Period.ZERO},
568 {ResolverStyle.LENIENT, 23, 59, 60, 123456789, LocalTime.of(0, 0, 0, 123456789), Period.ofDays(1)},
572 {ResolverStyle.LENIENT, 24, 0, 0, 0, LocalTime.of(0, 0, 0, 0), Period.ofDays(1)},
576 {ResolverStyle.LENIENT, 24, 1, 0, 0, LocalTime.of(0, 1, 0, 0), Period.ofDays(1)},
580 {ResolverStyle.LENIENT, 25, 0, 0, 0, LocalTime.of(1, 0, 0, 0), Period.ofDays(1)},
584 {ResolverStyle.LENIENT, 49, 2, 3, 4, LocalTime.of(1, 2, 3, 4), Period.ofDays(2)},
588 {ResolverStyle.LENIENT, -1, 2, 3, 4, LocalTime.of(23, 2, 3, 4), Period.ofDays(-1)},
592 {ResolverStyle.LENIENT, -6, 2, 3, 4, LocalTime.of(18, 2, 3, 4), Period.ofDays(-1)},
596 {ResolverStyle.LENIENT, 25, 61, 61, 1_123456789, LocalTime.of(2, 2, 2, 123456789), Period.ofDays(1)}
    [all...]
TCKResolverStyle.java 95 {"2000/15/30", ResolverStyle.LENIENT, null, 2001, 3, 30},
99 {"2000/15/30 CE", ResolverStyle.LENIENT, null, 2001, 3, 30},
  /external/mockito/src/main/java/org/mockito/internal/junit/
JUnitRule.java 62 return strictness(Strictness.LENIENT);
UniversalTestListener.java 49 case LENIENT: break;
  /libcore/ojluni/src/main/java/java/time/chrono/
AbstractChronology.java 378 * are combined to form a {@code YEAR}. In lenient mode, the {@code YEAR_OF_ERA}
381 * present, and the mode is smart or lenient, then the last available era
388 * If the mode is lenient, then the date is combined in a manner equivalent to
397 * If the mode is lenient, then the date is combined in a manner equivalent to
405 * If the mode is lenient, then the date is combined in a manner equivalent to
423 * If the mode is lenient, then the date is combined in a manner equivalent to
501 if (resolverStyle != ResolverStyle.LENIENT) {
518 if (resolverStyle != ResolverStyle.LENIENT) {
553 if (resolverStyle == ResolverStyle.LENIENT) {
573 if (resolverStyle == ResolverStyle.LENIENT) {
    [all...]
IsoChronology.java 423 * are combined to form a {@code YEAR}. In lenient mode, the {@code YEAR_OF_ERA}
426 * present, and the mode is smart or lenient, then the current era (CE/AD)
433 * If the mode is lenient, then the date is combined in a manner equivalent to
442 * If the mode is lenient, then the date is combined in a manner equivalent to
450 * If the mode is lenient, then the date is combined in a manner equivalent to
468 * If the mode is lenient, then the date is combined in a manner equivalent to
499 if (resolverStyle != ResolverStyle.LENIENT) {
511 if (resolverStyle != ResolverStyle.LENIENT) {
545 if (resolverStyle == ResolverStyle.LENIENT) {
  /libcore/ojluni/src/test/java/time/test/java/time/format/
TestReducedParser.java 97 private static final boolean LENIENT = false;
138 // Parse data and values that are consistent whether strict or lenient
214 // Parse data and values in strict and lenient modes.
216 // Strict Pair(endPos, value), Lenient Pair(endPos, value)
222 {YEAR, 2, 2, 2010, "3", 0, strict(0, null), lenient(1, 3)},
223 {YEAR, 2, 2, 2010, "4", 0, strict(0, null), lenient(1, 4)},
224 {YEAR, 2, 2, 2010, "5", 1, strict(1, null), lenient(1, null)},
225 {YEAR, 2, 2, 2010, "6-2", 0, strict(0, null), lenient(1, 6)},
226 {YEAR, 2, 2, 2010, "9", 0, strict(0, null), lenient(1, 9)},
229 {YEAR, 1, 4, 2000, "7A", 0, strict(1, 2007), lenient(1, 2007)}
501 private static Pair lenient(int parseLen, Integer parseVal) { method in class:TestReducedParser
    [all...]
  /external/mockito/src/test/java/org/mockito/internal/session/
DefaultMockitoSessionBuilderTest.java 45 new DefaultMockitoSessionBuilder().strictness(Strictness.LENIENT).startMocking().finishMocking();
  /libcore/ojluni/src/main/java/java/time/temporal/
JulianFields.java 116 * In {@linkplain ResolverStyle#LENIENT lenient mode} no validation occurs.
164 * In {@linkplain ResolverStyle#LENIENT lenient mode} no validation occurs.
200 * In {@linkplain ResolverStyle#LENIENT lenient mode} no validation occurs.
295 if (resolverStyle == ResolverStyle.LENIENT) {
WeekFields.java 182 // however, setting the week value should be lenient (use plus/minus weeks)
464 * In {@linkplain ResolverStyle#LENIENT lenient mode}, the year and day-of-week
510 * In {@linkplain ResolverStyle#LENIENT lenient mode}, the year and day-of-week
560 * In {@linkplain ResolverStyle#LENIENT lenient mode}, the year and day-of-week
602 * In {@linkplain ResolverStyle#LENIENT lenient mode}, the year and day-of-week
    [all...]
  /external/mockito/src/test/java/org/mockitousage/session/
MockitoSessionTest.java 120 MockitoSession mockito = Mockito.mockitoSession().strictness(Strictness.LENIENT).startMocking();
202 mockito.setStrictness(Strictness.LENIENT);
  /external/icu/android_icu4j/src/main/java/android/icu/impl/number/
Parse.java 43 * Lenient mode should be used if you want to accept malformed user input. It will use
46 LENIENT,
50 * specifically, it differs from lenient mode in the following ways:
57 * fail. (The latter strings would be accepted in lenient mode.)
58 * <li>Whitespace may not appear at arbitrary places in the string. In lenient mode,
62 * <li>Minus and plus signs can only appear if specified in the pattern. In lenient mode, a
85 * used, which might mean that fast mode won't accept strings that lenient or strict mode
100 * (periods, commas, and whitespace-like) as grouping. This is a more lenient strategy.
    [all...]
  /external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/number/
Parse.java 41 * Lenient mode should be used if you want to accept malformed user input. It will use
44 LENIENT,
48 * specifically, it differs from lenient mode in the following ways:
55 * fail. (The latter strings would be accepted in lenient mode.)
56 * <li>Whitespace may not appear at arbitrary places in the string. In lenient mode,
60 * <li>Minus and plus signs can only appear if specified in the pattern. In lenient mode, a
83 * used, which might mean that fast mode won't accept strings that lenient or strict mode
98 * (periods, commas, and whitespace-like) as grouping. This is a more lenient strategy.
    [all...]
  /libcore/ojluni/src/test/java/time/tck/java/time/temporal/
TCKIsoFields.java 179 .toFormatter().withResolverStyle(ResolverStyle.LENIENT);
244 .toFormatter().withResolverStyle(ResolverStyle.LENIENT);
378 .toFormatter().withResolverStyle(ResolverStyle.LENIENT);
436 .toFormatter().withResolverStyle(ResolverStyle.LENIENT);
TCKJulianFields.java 161 .toFormatter().withResolverStyle(ResolverStyle.LENIENT);
TCKWeekFields.java 59 import static java.time.format.ResolverStyle.LENIENT;
410 .appendValue(DAY_OF_WEEK).toFormatter().withResolverStyle(LENIENT);
479 .appendValue(dowField).toFormatter().withResolverStyle(LENIENT);
523 .appendValue(DAY_OF_WEEK).toFormatter().withResolverStyle(LENIENT);
589 .appendValue(dowField).toFormatter().withResolverStyle(LENIENT);
635 .appendValue(DAY_OF_WEEK).toFormatter().withResolverStyle(LENIENT);
    [all...]

Completed in 682 milliseconds

1 2