/libcore/ojluni/src/test/java/time/tck/java/time/format/ |
D | TCKDTFParsedInstant.java | 50 private static final ZoneId EUROPE_BERLIN = ZoneId.of("Europe/Berlin"); 51 private static final ZoneId ASIA_ISTANBUL = ZoneId.of("Asia/Istanbul"); 66 {"1966-12-31T00:01:10", LocalDateTime.of(1966, 12, 31, 0, 1, 10)}, in data_parse_WithoutOffset_WithoutZone() 67 {"1970-01-01T00:00:00", LocalDateTime.of(1970, 1, 1, 0, 0, 0)}, in data_parse_WithoutOffset_WithoutZone() 68 {"2004-02-29T00:30:00", LocalDateTime.of(2004, 2, 29, 0, 30, 0)}, in data_parse_WithoutOffset_WithoutZone() 69 {"2015-12-31T23:59:59", LocalDateTime.of(2015, 12, 31, 23, 59, 59)} in data_parse_WithoutOffset_WithoutZone() 84 … LocalDateTime.of(2012, 10, 28, 1, 45, 0, 0), ZoneOffset.of("-02:30"), EUROPE_BERLIN}, in data_parse_WithZone_WithOffset() 86 … LocalDateTime.of(2012, 10, 28, 1, 45, 0, 0), ZoneOffset.of("-01:00"), EUROPE_BERLIN}, in data_parse_WithZone_WithOffset() 88 … LocalDateTime.of(2012, 10, 28, 1, 45, 0, 0), ZoneOffset.of("-00:00"), EUROPE_BERLIN}, in data_parse_WithZone_WithOffset() 90 … LocalDateTime.of(2012, 10, 28, 1, 45, 0, 0), ZoneOffset.of("+00:00"), EUROPE_BERLIN}, in data_parse_WithZone_WithOffset() [all …]
|
D | TCKFormatStyle.java | 85 private static final ZoneId ZONEID_PARIS = ZoneId.of("Europe/Paris"); 86 private static final ZoneId OFFSET_PTWO = ZoneOffset.of("+02:00"); 102 …{ZonedDateTime.of(LocalDateTime.of(2001, 10, 2, 1, 2, 3), ZONEID_PARIS), FormatStyle.FULL, "Tuesda… in data_formatStyle() 103 …{ZonedDateTime.of(LocalDateTime.of(2001, 10, 2, 1, 2, 3), ZONEID_PARIS), FormatStyle.LONG, "2 Octo… in data_formatStyle() 104 …{ZonedDateTime.of(LocalDateTime.of(2001, 10, 2, 1, 2, 3), ZONEID_PARIS), FormatStyle.MEDIUM, "2 Oc… in data_formatStyle() 105 …{ZonedDateTime.of(LocalDateTime.of(2001, 10, 2, 1, 2, 3), ZONEID_PARIS), FormatStyle.SHORT, "02/10… in data_formatStyle() 107 …{ZonedDateTime.of(LocalDateTime.of(2001, 10, 2, 1, 2, 3), OFFSET_PTWO), FormatStyle.FULL, "Tuesday… in data_formatStyle() 108 …{ZonedDateTime.of(LocalDateTime.of(2001, 10, 2, 1, 2, 3), OFFSET_PTWO), FormatStyle.LONG, "2 Octob… in data_formatStyle() 109 …{ZonedDateTime.of(LocalDateTime.of(2001, 10, 2, 1, 2, 3), OFFSET_PTWO), FormatStyle.MEDIUM, "2 Oct… in data_formatStyle() 110 …{ZonedDateTime.of(LocalDateTime.of(2001, 10, 2, 1, 2, 3), OFFSET_PTWO), FormatStyle.SHORT, "02/10/… in data_formatStyle()
|
/libcore/ojluni/src/test/java/time/tck/java/time/ |
D | TCKYear.java | 123 private static final Year TEST_2008 = Year.of(2008); 183 ZoneId zone = ZoneId.of("UTC+01:02:03"); in now_ZoneId() 201 …Instant instant = OffsetDateTime.of(LocalDate.of(2010, 12, 31), LocalTime.of(0, 0), ZoneOffset.UTC… in now_Clock() 216 Year test = Year.of(i); in test_factory_int_singleton() 218 assertEquals(Year.of(i), test); in test_factory_int_singleton() 224 Year.of(Year.MIN_VALUE - 1); in test_factory_int_tooLow() 229 Year.of(Year.MAX_VALUE + 1); in test_factory_int_tooHigh() 235 assertEquals(Year.from(LocalDate.of(2007, 7, 15)), Year.of(2007)); in test_from_TemporalAccessor() 240 Year.from(LocalTime.of(12, 30)); in test_from_TemporalAccessor_invalid_noDerive() 254 {"9999", Year.of(9999)}, in provider_goodParseData() [all …]
|
D | TCKYearMonth.java | 130 TEST_2008_06 = YearMonth.of(2008, 6); in setUp() 195 ZoneId zone = ZoneId.of("UTC+01:02:03"); in now_ZoneId() 213 Instant instant = LocalDateTime.of(2010, 12, 31, 0, 0).toInstant(ZoneOffset.UTC); in now_Clock() 228 YearMonth test = YearMonth.of(2008, Month.FEBRUARY); in factory_intsMonth() 234 YearMonth.of(Year.MIN_VALUE - 1, Month.JANUARY); in test_factory_intsMonth_yearTooLow() 239 YearMonth.of(Year.MAX_VALUE + 1, Month.JANUARY); in test_factory_intsMonth_dayTooHigh() 244 YearMonth.of(2008, null); in factory_intsMonth_nullMonth() 250 YearMonth test = YearMonth.of(2008, 2); in factory_ints() 256 YearMonth.of(Year.MIN_VALUE - 1, 2); in test_factory_ints_yearTooLow() 261 YearMonth.of(Year.MAX_VALUE + 1, 2); in test_factory_ints_dayTooHigh() [all …]
|
D | TCKOffsetDateTime.java | 149 private static final ZoneId ZONE_PARIS = ZoneId.of("Europe/Paris"); 150 private static final ZoneId ZONE_GAZA = ZoneId.of("Asia/Gaza"); 163 … TEST_2008_6_30_11_30_59_000000500 = OffsetDateTime.of(2008, 6, 30, 11, 30, 59, 500, OFFSET_PONE); in setUp() 306 OffsetDateTime base = OffsetDateTime.of(1970, 1, 1, 12, 0, 0, 0, ZoneOffset.UTC); 341 assertEquals(OffsetDateTime.of(LocalDateTime.of(y, mo, d, h, m, s, n), offset), test); 349 OffsetDateTime test = OffsetDateTime.of(2008, 6, 30, 11, 30, 10, 500, OFFSET_PONE); 356 LocalDate date = LocalDate.of(2008, 6, 30); 357 LocalTime time = LocalTime.of(11, 30, 10, 500); 358 OffsetDateTime test = OffsetDateTime.of(date, time, OFFSET_PONE); 364 LocalTime time = LocalTime.of(11, 30, 10, 500); [all …]
|
D | TCKLocalDate.java | 141 private static final ZoneId ZONE_PARIS = ZoneId.of("Europe/Paris"); 142 private static final ZoneId ZONE_GAZA = ZoneId.of("Asia/Gaza"); 157 TEST_2007_07_15 = LocalDate.of(2007, 7, 15); in setUp() 213 assertEquals(LocalDate.of(y, m, d), test); in check() 256 ZoneId zone = ZoneId.of("UTC+01:02:03"); in now_ZoneId() 345 assertEquals(TEST_2007_07_15, LocalDate.of(2007, Month.JULY, 15)); 350 LocalDate.of(2007, Month.FEBRUARY, 29); 355 LocalDate.of(2007, Month.APRIL, 31); 360 LocalDate.of(2007, Month.JANUARY, 0); 365 LocalDate.of(2007, Month.JANUARY, 32); [all …]
|
D | TCKOffsetTime.java | 132 private static final ZoneId ZONE_GAZA = ZoneId.of("Asia/Gaza"); 136 private static final LocalDate DATE = LocalDate.of(2008, 12, 3); 145 TEST_11_30_59_500_PONE = OffsetTime.of(11, 30, 59, 500, OFFSET_PONE); in setUp() 255 Instant base = LocalDateTime.of(1970, 1, 1, 12, 0).toInstant(ZoneOffset.UTC); 282 assertEquals(test.toLocalTime(), LocalTime.of(h, m, s, n)); 292 assertEquals(OffsetTime.of(LocalTime.of(h, m, s, n), offset), test); 298 OffsetTime test = OffsetTime.of(11, 30, 10, 500, OFFSET_PONE); 305 LocalTime localTime = LocalTime.of(11, 30, 10, 500); 306 OffsetTime test = OffsetTime.of(localTime, OFFSET_PONE); 312 OffsetTime.of((LocalTime) null, OFFSET_PONE); [all …]
|
D | TCKMonthDay.java | 114 TEST_07_15 = MonthDay.of(7, 15); in setUp() 176 ZoneId zone = ZoneId.of("UTC+01:02:03"); in now_ZoneId() 194 Instant instant = LocalDateTime.of(2010, 12, 31, 0, 0).toInstant(ZoneOffset.UTC); in now_Clock() 209 assertEquals(TEST_07_15, MonthDay.of(Month.JULY, 15)); in factory_intMonth() 214 MonthDay.of(Month.JANUARY, 0); in test_factory_intMonth_dayTooLow() 219 MonthDay.of(Month.JANUARY, 32); in test_factory_intMonth_dayTooHigh() 224 MonthDay.of(null, 15); in factory_intMonth_nullMonth() 235 MonthDay.of(1, 0); in test_factory_ints_dayTooLow() 240 MonthDay.of(1, 32); in test_factory_ints_dayTooHigh() 246 MonthDay.of(0, 1); in test_factory_ints_monthTooLow() [all …]
|
D | TCKPeriod.java | 148 assertPeriod(Period.of(1, 2, 3), 1, 2, 3); in factory_of_ints() 149 assertPeriod(Period.of(0, 2, 3), 0, 2, 3); in factory_of_ints() 150 assertPeriod(Period.of(1, 0, 0), 1, 0, 0); in factory_of_ints() 151 assertPeriod(Period.of(0, 0, 0), 0, 0, 0); in factory_of_ints() 152 assertPeriod(Period.of(-1, -2, -3), -1, -2, -3); in factory_of_ints() 160 TemporalAmount amount = Period.of(1, 2, 3); in factory_from_TemporalAmount_Period() 322 {"P0Y0M0D", Period.of(0, 0, 0)}, in data_factory_parseSuccess() 323 {"P2Y0M0D", Period.of(2, 0, 0)}, in data_factory_parseSuccess() 324 {"P0Y3M0D", Period.of(0, 3, 0)}, in data_factory_parseSuccess() 325 {"P0Y0M4D", Period.of(0, 0, 4)}, in data_factory_parseSuccess() [all …]
|
/libcore/ojluni/src/test/java/time/test/java/time/ |
D | TestLocalDate.java | 86 TEST_2007_07_15 = LocalDate.of(2007, 7, 15); in setUp() 181 {LocalDate.of(-1, 1, 1)}, in provider_samplePlusWeeksSymmetry() 182 {LocalDate.of(-1, 2, 28)}, in provider_samplePlusWeeksSymmetry() 183 {LocalDate.of(-1, 3, 1)}, in provider_samplePlusWeeksSymmetry() 184 {LocalDate.of(-1, 12, 31)}, in provider_samplePlusWeeksSymmetry() 185 {LocalDate.of(0, 1, 1)}, in provider_samplePlusWeeksSymmetry() 186 {LocalDate.of(0, 2, 28)}, in provider_samplePlusWeeksSymmetry() 187 {LocalDate.of(0, 2, 29)}, in provider_samplePlusWeeksSymmetry() 188 {LocalDate.of(0, 3, 1)}, in provider_samplePlusWeeksSymmetry() 189 {LocalDate.of(0, 12, 31)}, in provider_samplePlusWeeksSymmetry() [all …]
|
D | TestOffsetDateTime.java | 90 …TEST_2008_6_30_11_30_59_000000500 = OffsetDateTime.of(LocalDate.of(2008, 6, 30), LocalTime.of(11, … in setUp() 113 LocalDate localDate = LocalDate.of(y, o, d); in test_get_same() 114 LocalTime localTime = LocalTime.of(h, m, s, n); in test_get_same() 115 LocalDateTime localDateTime = LocalDateTime.of(localDate, localTime); in test_get_same() 116 OffsetDateTime a = OffsetDateTime.of(localDateTime, offset); in test_get_same() 129 …OffsetDateTime base = OffsetDateTime.of(LocalDate.of(2008, 6, 30), LocalTime.of(11, 30, 59), OFFSE… in test_withOffsetSameLocal() 137 …OffsetDateTime base = OffsetDateTime.of(LocalDate.of(2008, 6, 30), LocalTime.of(11, 30, 59), OFFSE… in test_withOffsetSameLocal_noChange() 144 …OffsetDateTime base = OffsetDateTime.of(LocalDate.of(2008, 6, 30), LocalTime.of(11, 30, 59), OFFSE… in test_withOffsetSameInstant_noChange() 151 …OffsetDateTime base = OffsetDateTime.of(LocalDate.of(2008, 6, 30), LocalTime.of(11, 30, 59), OFFSE… in test_withYear_noChange() 158 …OffsetDateTime base = OffsetDateTime.of(LocalDate.of(2008, 6, 30), LocalTime.of(11, 30, 59), OFFSE… in test_withMonth_noChange() [all …]
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/ |
D | Character_UnicodeBlockTest.java | 116 assertEquals(Character.UnicodeBlock.BASIC_LATIN, Character.UnicodeBlock.of((char) 0x0)); in test_ofC() 117 assertEquals(Character.UnicodeBlock.BASIC_LATIN, Character.UnicodeBlock.of((char) 0x7f)); in test_ofC() 118 … assertEquals(Character.UnicodeBlock.LATIN_1_SUPPLEMENT, Character.UnicodeBlock.of((char) 0x80)); in test_ofC() 119 … assertEquals(Character.UnicodeBlock.LATIN_1_SUPPLEMENT, Character.UnicodeBlock.of((char) 0xff)); in test_ofC() 120 … assertEquals(Character.UnicodeBlock.LATIN_EXTENDED_A, Character.UnicodeBlock.of((char) 0x100)); in test_ofC() 121 … assertEquals(Character.UnicodeBlock.LATIN_EXTENDED_A, Character.UnicodeBlock.of((char) 0x17f)); in test_ofC() 122 … assertEquals(Character.UnicodeBlock.LATIN_EXTENDED_B, Character.UnicodeBlock.of((char) 0x180)); in test_ofC() 123 … assertEquals(Character.UnicodeBlock.LATIN_EXTENDED_B, Character.UnicodeBlock.of((char) 0x24f)); in test_ofC() 124 … assertEquals(Character.UnicodeBlock.IPA_EXTENSIONS, Character.UnicodeBlock.of((char) 0x250)); in test_ofC() 125 … assertEquals(Character.UnicodeBlock.IPA_EXTENSIONS, Character.UnicodeBlock.of((char) 0x2af)); in test_ofC() [all …]
|
/libcore/ojluni/src/test/java/time/tck/java/time/temporal/ |
D | TCKIsoFields.java | 97 {LocalDate.of(1969, 12, 29), 90, 4}, in data_quarter() 98 {LocalDate.of(1969, 12, 30), 91, 4}, in data_quarter() 99 {LocalDate.of(1969, 12, 31), 92, 4}, in data_quarter() 101 {LocalDate.of(1970, 1, 1), 1, 1}, in data_quarter() 102 {LocalDate.of(1970, 1, 2), 2, 1}, in data_quarter() 103 {LocalDate.of(1970, 2, 28), 59, 1}, in data_quarter() 104 {LocalDate.of(1970, 3, 1), 60, 1}, in data_quarter() 105 {LocalDate.of(1970, 3, 31), 90, 1}, in data_quarter() 107 {LocalDate.of(1970, 4, 1), 1, 2}, in data_quarter() 108 {LocalDate.of(1970, 6, 30), 91, 2}, in data_quarter() [all …]
|
D | TCKChronoUnit.java | 135 {CENTURIES, LocalDate.of(2000, 1, 10), true, 1, LocalDate.of(2100, 1, 10)}, in data_unitAndTemporal() 136 {DECADES, LocalDate.of(2000, 1, 10), true, 1, LocalDate.of(2010, 1, 10)}, in data_unitAndTemporal() 137 {YEARS, LocalDate.of(2000, 1, 10), true, 1, LocalDate.of(2001, 1, 10)}, in data_unitAndTemporal() 138 {MONTHS, LocalDate.of(2000, 1, 10), true, 1, LocalDate.of(2000, 2, 10)}, in data_unitAndTemporal() 139 {WEEKS, LocalDate.of(2000, 1, 10), true, 1, LocalDate.of(2000, 1, 17)}, in data_unitAndTemporal() 140 {DAYS, LocalDate.of(2000, 1, 10), true, 1, LocalDate.of(2000, 1, 11)}, in data_unitAndTemporal() 142 {HALF_DAYS, LocalTime.of(1, 2, 3, 400), true, 1, LocalTime.of(13, 2, 3, 400)}, in data_unitAndTemporal() 143 {HOURS, LocalTime.of(1, 2, 3, 400), true, 1, LocalTime.of(2, 2, 3, 400)}, in data_unitAndTemporal() 144 {MINUTES, LocalTime.of(1, 2, 3, 400), true, 1, LocalTime.of(1, 3, 3, 400)}, in data_unitAndTemporal() 145 {SECONDS, LocalTime.of(1, 2, 3, 400), true, 1, LocalTime.of(1, 2, 4, 400)}, in data_unitAndTemporal() [all …]
|
D | TCKChronoField.java | 201 {YEAR, LocalDate.of(2000, 2, 29), true, 2000}, in data_fieldAndAccessor() 202 {YEAR, LocalDateTime.of(2000, 2, 29, 5, 4, 3, 200), true, 2000}, in data_fieldAndAccessor() 203 {MONTH_OF_YEAR, LocalDate.of(2000, 2, 29), true, 2}, in data_fieldAndAccessor() 204 {MONTH_OF_YEAR, LocalDateTime.of(2000, 2, 29, 5, 4, 3, 200), true, 2}, in data_fieldAndAccessor() 205 {DAY_OF_MONTH, LocalDate.of(2000, 2, 29), true, 29}, in data_fieldAndAccessor() 206 {DAY_OF_MONTH, LocalDateTime.of(2000, 2, 29, 5, 4, 3, 200), true, 29}, in data_fieldAndAccessor() 207 {DAY_OF_YEAR, LocalDate.of(2000, 2, 29), true, 60}, in data_fieldAndAccessor() 208 {DAY_OF_YEAR, LocalDateTime.of(2000, 2, 29, 5, 4, 3, 200), true, 60}, in data_fieldAndAccessor() 210 {HOUR_OF_DAY, LocalTime.of(5, 4, 3, 200), true, 5}, in data_fieldAndAccessor() 211 {HOUR_OF_DAY, LocalDateTime.of(2000, 2, 29, 5, 4, 3, 200), true, 5}, in data_fieldAndAccessor() [all …]
|
/libcore/ojluni/src/test/java/time/test/java/time/zone/ |
D | TestZoneRules.java | 56 private static final ZoneId DUBLIN = ZoneId.of("Europe/Dublin"); 57 private static final ZoneId PRAGUE = ZoneId.of("Europe/Prague"); 58 private static final ZoneId WINDHOEK = ZoneId.of("Africa/Windhoek"); 59 private static final ZoneId CASABLANCA = ZoneId.of("Africa/Casablanca"); 61 private static final ZoneId TOKYO = ZoneId.of("Asia/Tokyo"); 62 private static final LocalTime ONE_AM = LocalTime.of(1, 0); 68 …private static final ZoneOffsetTransition ZOT = ZoneId.of("America/Los_Angeles").getRules().getTra… 69 …private static final ZoneOffsetTransitionRule ZOTR = ZoneId.of("America/Los_Angeles").getRules().g… 79 {DUBLIN, LocalDate.of(1970, 6, 23), OFF_1, OFF_1, false}, in negativeDST() 80 {DUBLIN, LocalDate.of(1971, 6, 23), OFF_1, OFF_1, false}, in negativeDST() [all …]
|
/libcore/ojluni/src/test/java/time/test/java/time/chrono/ |
D | TestUmmAlQuraChronology.java | 81 private static final ZoneId ZONE_RIYADH = ZoneId.of("Asia/Riyadh"); 86 HijrahChronology hc = (HijrahChronology) Chronology.of("Hijrah"); in test_aliases() 88 hc = (HijrahChronology) Chronology.of("islamic"); in test_aliases() 95 Chronology test = Chronology.of("Hijrah-ummalqura"); in test_badChronology() 104 {HijrahDate.of(1318, 1, 1), LocalDate.of(1900, 04, 30)}, in data_UmmAlQuraVsISODates() 105 {HijrahDate.of(1318, 12, 29), LocalDate.of(1901, 04, 19)}, in data_UmmAlQuraVsISODates() 106 {HijrahDate.of(1319, 01, 01), LocalDate.of(1901, 04, 20)}, in data_UmmAlQuraVsISODates() 107 {HijrahDate.of(1433, 12, 29), LocalDate.of(2012, 11, 14)}, in data_UmmAlQuraVsISODates() 108 {HijrahDate.of(1434, 01, 01), LocalDate.of(2012, 11, 15)}, in data_UmmAlQuraVsISODates() 109 {HijrahDate.of(1434, 02, 18), LocalDate.of(2012, 12, 31)}, in data_UmmAlQuraVsISODates() [all …]
|
/libcore/ojluni/src/main/java/java/lang/constant/ |
D | ConstantDescs.java | 67 public static final ClassDesc CD_Object = ClassDesc.of("java.lang.Object"); 70 public static final ClassDesc CD_String = ClassDesc.of("java.lang.String"); 73 public static final ClassDesc CD_Class = ClassDesc.of("java.lang.Class"); 76 public static final ClassDesc CD_Number = ClassDesc.of("java.lang.Number"); 79 public static final ClassDesc CD_Integer = ClassDesc.of("java.lang.Integer"); 82 public static final ClassDesc CD_Long = ClassDesc.of("java.lang.Long"); 85 public static final ClassDesc CD_Float = ClassDesc.of("java.lang.Float"); 88 public static final ClassDesc CD_Double = ClassDesc.of("java.lang.Double"); 91 public static final ClassDesc CD_Short = ClassDesc.of("java.lang.Short"); 94 public static final ClassDesc CD_Byte = ClassDesc.of("java.lang.Byte"); [all …]
|
/libcore/luni/src/test/java/libcore/java/util/ |
D | SetOfTest.java | 42 new SerializationTester<>(Set.<String>of(), golden).test(); in of_serializationCompatibility_empty() 52 new SerializationTester<>(Set.of("one"), golden).test(); in of_serializationCompatibility_oneElement() 66 new SerializationTester<>(Set.of(12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0), golden).test(); in of_serializationCompatibility_manyElements() 70 Set<?> list = Set.of("element", 42); in mixedTypes() 80 assertThrowsIae(() -> { Set.of("duplicate", "duplicate"); }); in duplicate() 81 assertThrowsIae(() -> { Set.of("duplicate", "duplicate", "duplicate"); }); in duplicate() 82 assertThrowsIae(() -> { Set.of("a", "duplicate", "duplicate"); }); in duplicate() 84 Set.of("a", "duplicate", "b", "c", "d", "e", "f", "g", "duplicate"); in duplicate() 86 assertThrowsIae(() -> { Set.of("a", "duplicate", "b", "c", "d", "e", "f", "g", in duplicate() 95 assertThrowsNpe(() -> { Set.of("duplicate", null, "duplicate"); }); // null first in duplicateAndNull() [all …]
|
D | ListOfTest.java | 45 new SerializationTester<>(List.<String>of(), golden).test(); in serializationCompatibility_empty() 56 new SerializationTester<>(List.of("one"), golden).test(); in serializationCompatibility_oneElement() 71 new SerializationTester<>(List.of(12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0), golden).test(); in serializationCompatibility_manyElements() 75 List<?> list = List.of("element", 42); in mixedTypes() 86 check_nonEmpty(asList("duplicate", "duplicate"), List.of("duplicate", "duplicate")); in duplicates_allowed() 91 Collections.<String>emptyList(), List.<String>of(), "non-null example String"); in empty() 95 check_nonEmpty(asList("one"), List.of("one")); in nonEmpty() 96 check_nonEmpty(asList("one", "two"), List.of("one", "two")); in nonEmpty() 97 check_nonEmpty(asList("one", "two", "three"), List.of("one", "two", "three")); in nonEmpty() 99 List.of("one", "two", "three", "four")); in nonEmpty() [all …]
|
/libcore/ojluni/src/test/java/time/tck/java/time/zone/ |
D | TCKZoneOffsetTransition.java | 91 ZoneOffsetTransition.of(null, OFFSET_0100, OFFSET_0200); in test_factory_nullTransition() 96 ZoneOffsetTransition.of(LocalDateTime.of(2010, 12, 3, 11, 30), null, OFFSET_0200); in test_factory_nullOffsetBefore() 101 ZoneOffsetTransition.of(LocalDateTime.of(2010, 12, 3, 11, 30), OFFSET_0200, null); in test_factory_nullOffsetAfter() 106 ZoneOffsetTransition.of(LocalDateTime.of(2010, 12, 3, 11, 30), OFFSET_0200, OFFSET_0200); in test_factory_sameOffset() 111 … ZoneOffsetTransition.of(LocalDateTime.of(2010, 12, 3, 11, 30, 0, 500), OFFSET_0200, OFFSET_0300); in test_factory_noNanos() 119 LocalDateTime before = LocalDateTime.of(2010, 3, 31, 1, 0); in test_getters_gap() 120 LocalDateTime after = LocalDateTime.of(2010, 3, 31, 2, 0); in test_getters_gap() 121 ZoneOffsetTransition test = ZoneOffsetTransition.of(before, OFFSET_0200, OFFSET_0300); in test_getters_gap() 129 assertEquals(test.getDuration(), Duration.of(1, HOURS)); in test_getters_gap() 134 LocalDateTime before = LocalDateTime.of(2010, 10, 31, 1, 0); in test_getters_overlap() [all …]
|
/libcore/luni/src/test/java/libcore/java/time/ |
D | OffsetDateTimeTest.java | 35 OffsetDateTime.of(2000, 1, 2, 3, 4, 5, 6, ZoneOffset.UTC); 43 assertEquals(OffsetDateTime.of(2000, 1, 2, 4, 4, 5, 6, ZoneOffset.UTC), in test_plus() 45 assertEquals(OffsetDateTime.of(2000, 1, 3, 2, 4, 5, 6, ZoneOffset.UTC), in test_plus() 47 assertEquals(OffsetDateTime.of(2000, 1, 2, 3, 5, 5, 6, ZoneOffset.UTC), in test_plus() 49 assertEquals(OffsetDateTime.of(2000, 1, 2, 3, 5, 5, 6, ZoneOffset.UTC), in test_plus() 51 assertEquals(OffsetDateTime.of(2000, 1, 2, 3, 4, 5, 1_000_006, ZoneOffset.UTC), in test_plus() 53 assertEquals(OffsetDateTime.of(2000, 1, 2, 3, 4, 5, 7, ZoneOffset.UTC), in test_plus() 59 assertEquals(OffsetDateTime.of(2000, 1, 2, 2, 4, 5, 6, ZoneOffset.UTC), in test_minus_utc_offset() 61 assertEquals(OffsetDateTime.of(2000, 1, 1, 4, 4, 5, 6, ZoneOffset.UTC), in test_minus_utc_offset() 63 assertEquals(OffsetDateTime.of(2000, 1, 2, 3, 3, 5, 6, ZoneOffset.UTC), in test_minus_utc_offset() [all …]
|
/libcore/ojluni/src/test/java/time/test/java/time/temporal/ |
D | TestDateTimeValueRange.java | 95 ValueRange test = ValueRange.of(1, 12); in test_of_longlong() 105 ValueRange test = ValueRange.of(1, 123456789012345L); in test_of_longlong_big() 116 ValueRange.of(12, 1); in test_of_longlong_minGtMax() 123 ValueRange test = ValueRange.of(1, 28, 31); in test_of_longlonglong() 134 ValueRange.of(12, 1, 2); in test_of_longlonglong_minGtMax() 139 ValueRange.of(1, 31, 28); in test_of_longlonglong_smallestmaxminGtMax() 144 ValueRange.of(5, 2, 10); in test_of_longlonglong_minGtSmallestMax() 167 ValueRange test = ValueRange.of(sMin, lMin, sMax, lMax); in test_of_longlonglonglong() 197 ValueRange.of(sMin, lMin, sMax, lMax); in test_of_longlonglonglong_invalid() 204 ValueRange test = ValueRange.of(1, 28, 31); in test_isValidValue_long() [all …]
|
/libcore/ojluni/src/test/java/util/Collections/ |
D | WrappedUnmodifiableCollections.java | 49 List<List<?>> lists = List.of(List.of(), List.of(1,2,3), List.of(1), in testUnmodifiableListsDontWrap() 50 List.of(1,2,3,4,5,6), in testUnmodifiableListsDontWrap() 51 List.of(1,2,3).subList(0,1), in testUnmodifiableListsDontWrap() 52 new LinkedList<>(List.of(1,2,3)), in testUnmodifiableListsDontWrap() 53 new ArrayList<>(List.of(1,2,3))); in testUnmodifiableListsDontWrap() 61 Collection<?> list = List.of(); in testUnmodifiableCollectionsDontWrap() 67 List<Set<?>> sets = List.of(new TreeSet<>(), in testUnmodifiableSetsDontWrap() 68 Set.of(1, 2), in testUnmodifiableSetsDontWrap() 69 Set.of(1,2,3,4,5,6)); in testUnmodifiableSetsDontWrap() 88 List<Map<?,?>> maps = List.of(treeMap, in testUnmodifiableMapsDontWrap() [all …]
|
/libcore/ojluni/src/test/java/util/Collection/ |
D | SetFactories.java | 81 a(Set.of(), Collections.emptySet()) in empty() 89 a( Set.of("a"), in nonempty() 91 a( Set.of("a", "b"), in nonempty() 93 a( Set.of("a", "b", "c"), in nonempty() 95 a( Set.of("a", "b", "c", "d"), in nonempty() 97 a( Set.of("a", "b", "c", "d", "e"), in nonempty() 99 a( Set.of("a", "b", "c", "d", "e", "f"), in nonempty() 101 a( Set.of("a", "b", "c", "d", "e", "f", "g"), in nonempty() 103 a( Set.of("a", "b", "c", "d", "e", "f", "g", "h"), in nonempty() 105 a( Set.of("a", "b", "c", "d", "e", "f", "g", "h", "i"), in nonempty() [all …]
|