/libcore/ojluni/src/test/java/time/test/java/time/ |
D | TestOffsetDateTime.java | 126 OffsetDateTime test = base.withOffsetSameLocal(OFFSET_PTWO); in test_withOffsetSameLocal() local 134 OffsetDateTime test = base.withOffsetSameLocal(OFFSET_PONE); in test_withOffsetSameLocal_noChange() local 141 OffsetDateTime test = base.withOffsetSameInstant(OFFSET_PONE); in test_withOffsetSameInstant_noChange() local 148 OffsetDateTime test = base.withYear(2008); in test_withYear_noChange() local 155 OffsetDateTime test = base.withMonth(6); in test_withMonth_noChange() local 162 OffsetDateTime test = base.withDayOfMonth(30); in test_withDayOfMonth_noChange() local 175 OffsetDateTime test = base.withHour(11); in test_withHour_noChange() local 182 OffsetDateTime test = base.withMinute(30); in test_withMinute_noChange() local 189 OffsetDateTime test = base.withSecond(59); in test_withSecond_noChange() local 196 OffsetDateTime test = base.withNano(1); in test_withNanoOfSecond_noChange() local [all …]
|
D | TestZoneId.java | 116 ZoneId test = ZoneOffset.UTC; in test_constant_UTC() local 128 ZoneId test = ZoneId.systemDefault(); in test_systemDefault() local 158 ZoneId test = ZoneId.of("Europe/London"); in test_London() local 164 ZoneId test = ZoneId.of("Europe/London"); in test_London_getOffset() local 180 ZoneId test = ZoneId.of("Europe/London"); in test_London_getOffset_toDST() local 195 ZoneId test = ZoneId.of("Europe/London"); in test_London_getOffset_fromDST() local 210 ZoneId test = ZoneId.of("Europe/London"); in test_London_getOffsetInfo() local 226 ZoneId test = ZoneId.of("Europe/London"); in test_London_getOffsetInfo_toDST() local 242 ZoneId test = ZoneId.of("Europe/London"); in test_London_getOffsetInfo_fromDST() local 258 ZoneId test = ZoneId.of("Europe/London"); in test_London_getOffsetInfo_gap() local [all …]
|
D | TestMonthDay.java | 93 void check(MonthDay test, int m, int d) { in check() 100 MonthDay test = MonthDay.of(6, 30); in test_with_Month_noChangeSame() local 101 assertSame(test.with(Month.JUNE), test); in test_with_Month_noChangeSame() local 106 MonthDay test = MonthDay.of(6, 30); in test_withMonth_int_noChangeSame() local 111 MonthDay test = MonthDay.of(6, 30); in test_withDayOfMonth_noChangeSame() local 117 MonthDay test = MonthDay.of(6, 30); in test_adjustDate_same() local
|
D | TestOffsetDateTime_instants.java | 100 OffsetDateTime test = OffsetDateTime.ofInstant(instant, OFFSET_PONE); in factory_ofInstant_allSecsInDay() local 115 OffsetDateTime test = OffsetDateTime.ofInstant(instant, ZoneOffset.UTC); in factory_ofInstant_allDaysInCycle() local 158 OffsetDateTime test = OffsetDateTime.ofInstant(instant, OFFSET_MIN); in factory_ofInstant_minWithMinOffset() local 174 OffsetDateTime test = OffsetDateTime.ofInstant(instant, OFFSET_MAX); in factory_ofInstant_minWithMaxOffset() local 190 OffsetDateTime test = OffsetDateTime.ofInstant(instant, OFFSET_MIN); in factory_ofInstant_maxWithMinOffset() local 206 OffsetDateTime test = OffsetDateTime.ofInstant(instant, OFFSET_MAX); in factory_ofInstant_maxWithMaxOffset() local 243 OffsetDateTime test = OffsetDateTime.ofInstant(instant, ZoneOffset.UTC); in doTest_factory_ofInstant_all() local 287 Instant test = dt.toInstant(); in test_toInstant_19700101() local 294 Instant test = dt.toInstant(); in test_toInstant_19700101_oneNano() local 301 Instant test = dt.toInstant(); in test_toInstant_19700101_minusOneNano() local [all …]
|
D | TestClock_System.java | 79 Clock test = Clock.system(PARIS); in test_withZone_same() local 86 Clock test = Clock.system(PARIS); in test_toString() local
|
/libcore/ojluni/src/test/java/time/tck/java/time/format/ |
D | TCKDateTimeFormatter.java | 138 DateTimeFormatter test = base.withLocale(Locale.GERMAN); in test_withLocale() local 151 DateTimeFormatter test = fmt; in test_withChronology() local 162 DateTimeFormatter test = fmt; in test_withZone() local 356 DateTimeFormatter test = new DateTimeFormatterBuilder() in test_format_withZone_withChronology() local 392 DateTimeFormatter test = new DateTimeFormatterBuilder() in test_format_withChronology_nonChronoFieldMapLink() local 403 … DateTimeFormatter test = fmt.withLocale(Locale.ENGLISH).withDecimalStyle(DecimalStyle.STANDARD); in test_format_TemporalAccessor_simple() local 410 … DateTimeFormatter test = fmt.withLocale(Locale.ENGLISH).withDecimalStyle(DecimalStyle.STANDARD); in test_format_TemporalAccessor_noSuchField() local 416 … DateTimeFormatter test = fmt.withLocale(Locale.ENGLISH).withDecimalStyle(DecimalStyle.STANDARD); in test_format_TemporalAccessor_null() local 423 … DateTimeFormatter test = fmt.withLocale(Locale.ENGLISH).withDecimalStyle(DecimalStyle.STANDARD); in test_print_TemporalAppendable() local 431 … DateTimeFormatter test = fmt.withLocale(Locale.ENGLISH).withDecimalStyle(DecimalStyle.STANDARD); in test_print_TemporalAppendable_noSuchField() local [all …]
|
/libcore/ojluni/src/test/java/time/tck/java/time/ |
D | TCKYearMonth.java | 163 void check(YearMonth test, int y, int m) { in check() 174 YearMonth test = YearMonth.now(); in now() local 197 YearMonth test = YearMonth.now(zone); in now_ZoneId() local 215 YearMonth test = YearMonth.now(clock); in now_Clock() local 228 YearMonth test = YearMonth.of(2008, Month.FEBRUARY); in factory_intsMonth() local 250 YearMonth test = YearMonth.of(2008, 2); in factory_ints() local 380 YearMonth test = YearMonth.parse("2010 12", f); in factory_parse_formatter() local 534 YearMonth test = YearMonth.of(2008, 6); in test_with_Year() local 540 YearMonth test = YearMonth.of(2008, 6); in test_with_Year_noChange_equal() local 546 YearMonth test = YearMonth.of(2008, 6); in test_with_Year_null() local [all …]
|
D | TCKClock_Tick.java | 88 …Clock test = Clock.tick(Clock.fixed(ZDT.withNano(i * 1000_000).toInstant(), PARIS), Duration.ofMil… in test_tick_ClockDuration_250millis() local 96 …Clock test = Clock.tick(Clock.fixed(ZDT.withNano(i * 1000).toInstant(), PARIS), Duration.ofNanos(2… in test_tick_ClockDuration_250micros() local 104 … Clock test = Clock.tick(Clock.fixed(ZDT.withNano(i).toInstant(), PARIS), Duration.ofNanos(20)); in test_tick_ClockDuration_20nanos() local 112 Clock test = Clock.tick(underlying, Duration.ZERO); in test_tick_ClockDuration_zeroDuration() local 118 Clock test = Clock.tick(underlying, Duration.ofNanos(1)); in test_tick_ClockDuration_1nsDuration() local 164 Clock test = Clock.tickSeconds(PARIS); in test_tickSeconds_ZoneId() local 178 Clock test = Clock.tickMinutes(PARIS); in test_tickMinutes_ZoneId() local 192 Clock test = Clock.tick(Clock.system(PARIS), Duration.ofMillis(500)); in test_withZone() local 199 Clock test = Clock.tick(Clock.system(PARIS), Duration.ofMillis(500)); in test_withZone_equal() local
|
D | TCKZoneOffset.java | 129 ZoneOffset test = ZoneOffset.UTC; in test_constant_UTC() local 135 ZoneOffset test = ZoneOffset.MIN; in test_constant_MIN() local 141 ZoneOffset test = ZoneOffset.MAX; in test_constant_MAX() local 156 ZoneOffset test = ZoneOffset.of(values[i]); in test_factory_string_UTC() local 198 ZoneOffset test = ZoneOffset.of(str); in test_factory_string_singleDigitHours() local 207 ZoneOffset test = ZoneOffset.of(str); in test_factory_string_hours() local 220 ZoneOffset test = ZoneOffset.of(str); in test_factory_string_hours_minutes_noColon() local 239 ZoneOffset test = ZoneOffset.of(str); in test_factory_string_hours_minutes_colon() local 261 ZoneOffset test = ZoneOffset.of(str); in test_factory_string_hours_minutes_seconds_noColon() local 284 ZoneOffset test = ZoneOffset.of(str); in test_factory_string_hours_minutes_seconds_colon() local [all …]
|
D | TCKPeriod.java | 529 Period test = Period.between(start, end); in factory_between_LocalDate() local 691 Period test = Period.ofYears(Integer.MAX_VALUE); in test_plusYears_overflowTooBig() local 697 Period test = Period.ofYears(Integer.MIN_VALUE); in test_plusYears_overflowTooSmall() local 719 Period test = Period.ofMonths(Integer.MAX_VALUE); in test_plusMonths_overflowTooBig() local 725 Period test = Period.ofMonths(Integer.MIN_VALUE); in test_plusMonths_overflowTooSmall() local 747 Period test = Period.ofDays(Integer.MAX_VALUE); in test_plusDays_overflowTooBig() local 753 Period test = Period.ofDays(Integer.MIN_VALUE); in test_plusDays_overflowTooSmall() local 836 Period test = Period.ofYears(Integer.MAX_VALUE); in test_minusYears_overflowTooBig() local 842 Period test = Period.ofYears(Integer.MIN_VALUE); in test_minusYears_overflowTooSmall() local 864 Period test = Period.ofMonths(Integer.MAX_VALUE); in test_minusMonths_overflowTooBig() local [all …]
|
D | TestIsoChronology.java | 101 Chronology test = Chronology.of("ISO"); in test_chrono_byName() local 188 LocalDate test = IsoChronology.INSTANCE.date(IsoEra.BCE, year, month, dayOfMonth); in test_date_withEra() local 211 LocalDate test = base.with(TemporalAdjusters.lastDayOfMonth()); in test_adjust1() local 218 LocalDate test = base.with(TemporalAdjusters.lastDayOfMonth()); in test_adjust2() local 228 LocalDate test = isoDate.with(LocalDate.of(2012, 7, 6)); in test_adjust_toLocalDate() local 244 LocalDate test = LocalDate.MIN.with(isoDate); in test_LocalDate_adjustToISODate() local 251 LocalDateTime test = LocalDateTime.MIN.with(isoDate); in test_LocalDateTime_adjustToISODate() local
|
D | TCKMonthDay.java | 144 void check(MonthDay test, int m, int d) { in check() 155 MonthDay test = MonthDay.now(); in now() local 178 MonthDay test = MonthDay.now(zone); in now_ZoneId() local 196 MonthDay test = MonthDay.now(clock); in now_Clock() local 361 MonthDay test = MonthDay.parse("12 3", f); in factory_parse_formatter() local 504 MonthDay test = MonthDay.of(6, 30); in test_with_Month_noChangeEqual() local 505 assertEquals(test.with(Month.JUNE), test); in test_with_Month_noChangeEqual() local 533 MonthDay test = MonthDay.of(6, 30); in test_withMonth_int_noChangeEqual() local 567 MonthDay test = MonthDay.of(6, 30); in test_withDayOfMonth_noChangeEqual() local 586 MonthDay test = MonthDay.of(6, 30); in test_adjustDate() local [all …]
|
/libcore/ojluni/src/test/java/time/tck/java/time/zone/serial/ |
D | TCKZoneOffsetTransitionRuleSerialization.java | 88 ZoneOffsetTransitionRule test = ZoneOffsetTransitionRule.of( in test_serialization_unusualOffsets() local 98 ZoneOffsetTransitionRule test = ZoneOffsetTransitionRule.of( in test_serialization_endOfDay() local 106 ZoneOffsetTransitionRule test = ZoneOffsetTransitionRule.of( in test_serialization_unusualTime() local 114 ZoneOffsetTransitionRule test = ZoneOffsetTransitionRule.of( in test_serialization_floatingWeek() local 122 ZoneOffsetTransitionRule test = ZoneOffsetTransitionRule.of( in test_serialization_floatingWeekBackwards() local 130 ZoneOffsetTransitionRule test = ZoneOffsetTransitionRule.of( in test_serialization_fixedDate() local
|
D | TCKZoneOffsetTransitionSerialization.java | 86 …ZoneOffsetTransition test = ZoneOffsetTransition.of(ldt, ZoneOffset.of("+02:04:56"), ZoneOffset.of… in test_serialization_unusual1() local 93 …ZoneOffsetTransition test = ZoneOffsetTransition.of(ldt, ZoneOffset.of("+02:04:56"), ZoneOffset.of… in test_serialization_unusual2() local 101 ZoneOffsetTransition test = ZoneOffsetTransition.of(before, OFFSET_0200, OFFSET_0300); in test_serialization_gap() local 109 ZoneOffsetTransition test = ZoneOffsetTransition.of(before, OFFSET_0300, OFFSET_0200); in test_serialization_overlap() local
|
/libcore/ojluni/src/test/java/time/tck/java/time/temporal/ |
D | TCKTemporalAdjusters.java | 92 TemporalAdjuster test = TemporalAdjusters.ofDateAdjuster(date -> date.plusDays(2)); in factory_ofDateAdjuster() local 115 LocalDate test = (LocalDate) TemporalAdjusters.firstDayOfMonth().adjustInto(date); in test_firstDayOfMonth_nonLeap() local 128 LocalDate test = (LocalDate) TemporalAdjusters.firstDayOfMonth().adjustInto(date); in test_firstDayOfMonth_leap() local 149 LocalDate test = (LocalDate) TemporalAdjusters.lastDayOfMonth().adjustInto(date); in test_lastDayOfMonth_nonLeap() local 162 LocalDate test = (LocalDate) TemporalAdjusters.lastDayOfMonth().adjustInto(date); in test_lastDayOfMonth_leap() local 183 … LocalDate test = (LocalDate) TemporalAdjusters.firstDayOfNextMonth().adjustInto(date); in test_firstDayOfNextMonth_nonLeap() local 196 … LocalDate test = (LocalDate) TemporalAdjusters.firstDayOfNextMonth().adjustInto(date); in test_firstDayOfNextMonth_leap() local 217 LocalDate test = (LocalDate) TemporalAdjusters.firstDayOfYear().adjustInto(date); in test_firstDayOfYear_nonLeap() local 230 LocalDate test = (LocalDate) TemporalAdjusters.firstDayOfYear().adjustInto(date); in test_firstDayOfYear_leap() local 251 LocalDate test = (LocalDate) TemporalAdjusters.lastDayOfYear().adjustInto(date); in test_lastDayOfYear_nonLeap() local [all …]
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/ |
D | AttributedCharacterIteratorTest.java | 30 String test = "Test 23ring"; in test_current() local 50 String test = "Test 23ring"; in test_first() local 66 String test = "Test 23ring"; in test_getBeginIndex() local 76 String test = "Test 23ring"; in test_getEndIndex() local 86 String test = "Test 23ring"; in test_getIndex() local 103 String test = "Test 23ring"; in test_last() local 119 String test = "Test 23ring"; in test_next() local 136 String test = "Test 23ring"; in test_previous() local 147 String test = "Test 23ring"; in test_setIndexI() local
|
/libcore/ojluni/src/test/java/time/tck/java/time/zone/ |
D | TCKFixedZoneRules.java | 112 public void test_getOffset_Instant(ZoneRules test, ZoneOffset expectedOffset) { in test_getOffset_Instant() 118 public void test_getOffset_LocalDateTime(ZoneRules test, ZoneOffset expectedOffset) { in test_getOffset_LocalDateTime() 124 public void test_getValidOffsets_LDT(ZoneRules test, ZoneOffset expectedOffset) { in test_getValidOffsets_LDT() 132 public void test_getTransition_LDT(ZoneRules test, ZoneOffset expectedOffset) { in test_getTransition_LDT() 138 public void test_isValidOffset_LDT_ZO(ZoneRules test, ZoneOffset expectedOffset) { in test_isValidOffset_LDT_ZO() 149 public void test_getStandardOffset_Instant(ZoneRules test, ZoneOffset expectedOffset) { in test_getStandardOffset_Instant() 155 public void test_getDaylightSavings_Instant(ZoneRules test, ZoneOffset expectedOffset) { in test_getDaylightSavings_Instant() 161 public void test_isDaylightSavings_Instant(ZoneRules test, ZoneOffset expectedOffset) { in test_isDaylightSavings_Instant() 168 public void test_nextTransition_Instant(ZoneRules test, ZoneOffset expectedOffset) { in test_nextTransition_Instant() 174 public void test_previousTransition_Instant(ZoneRules test, ZoneOffset expectedOffset) { in test_previousTransition_Instant() [all …]
|
D | TCKZoneRules.java | 116 ZoneRules test = europeLondon(); in test_London() local 121 ZoneRules test = europeLondon(); in test_London_preTimeZones() local 133 ZoneRules test = europeLondon(); in test_London_getOffset() local 149 ZoneRules test = europeLondon(); in test_London_getOffset_toDST() local 164 ZoneRules test = europeLondon(); in test_London_getOffset_fromDST() local 179 ZoneRules test = europeLondon(); in test_London_getOffsetInfo() local 195 ZoneRules test = europeLondon(); in test_London_getOffsetInfo_toDST() local 210 ZoneRules test = europeLondon(); in test_London_getOffsetInfo_fromDST() local 225 ZoneRules test = europeLondon(); in test_London_getOffsetInfo_gap() local 250 ZoneRules test = europeLondon(); in test_London_getOffsetInfo_overlap() local [all …]
|
D | TCKZoneOffsetTransitionRule.java | 164 ZoneOffsetTransitionRule test = ZoneOffsetTransitionRule.of( in test_getters_floatingWeek() local 180 ZoneOffsetTransitionRule test = ZoneOffsetTransitionRule.of( in test_getters_floatingWeekBackwards() local 196 ZoneOffsetTransitionRule test = ZoneOffsetTransitionRule.of( in test_getters_fixedDate() local 216 ZoneOffsetTransitionRule test = ZoneOffsetTransitionRule.of( in test_createTransition_floatingWeek_gap_notEndOfDay() local 226 ZoneOffsetTransitionRule test = ZoneOffsetTransitionRule.of( in test_createTransition_floatingWeek_overlap_endOfDay() local 236 ZoneOffsetTransitionRule test = ZoneOffsetTransitionRule.of( in test_createTransition_floatingWeekBackwards_last() local 246 ZoneOffsetTransitionRule test = ZoneOffsetTransitionRule.of( in test_createTransition_floatingWeekBackwards_seventhLast() local 256 ZoneOffsetTransitionRule test = ZoneOffsetTransitionRule.of( in test_createTransition_floatingWeekBackwards_secondLast() local 266 ZoneOffsetTransitionRule test = ZoneOffsetTransitionRule.of( in test_createTransition_fixedDate() local 485 ZoneOffsetTransitionRule test = ZoneOffsetTransitionRule.of( in test_toString_floatingWeek_gap_notEndOfDay() local [all …]
|
/libcore/dom/src/test/java/org/w3c/domts/ |
D | JUnitTestSuiteAdapter.java | 23 private DOMTestSuite test; field in JUnitTestSuiteAdapter 25 public JUnitTestSuiteAdapter(DOMTestSuite test) { in JUnitTestSuiteAdapter() 48 TestCase test = new JUnitTestCaseAdapter((DOMTestCase) domtest); in addTest() local 53 TestSuite test = new JUnitTestSuiteAdapter((DOMTestSuite) domtest); in addTest() local
|
D | DOMTestFramework.java | 34 void fail(DOMTestCase test, String assertID); in fail() 36 void assertTrue(DOMTestCase test, String assertID, boolean actual); in assertTrue() 38 void assertFalse(DOMTestCase test, String assertID, boolean actual); in assertFalse() 40 void assertNull(DOMTestCase test, String assertID, Object actual); in assertNull() 42 void assertNotNull(DOMTestCase test, String assertID, Object actual); in assertNotNull() 45 DOMTestCase test, in assertSame() 51 DOMTestCase test, in assertInstanceOf() 57 DOMTestCase test, in assertSize() 63 DOMTestCase test, in assertSize() 69 DOMTestCase test, in assertSize() [all …]
|
D | JUnitTestCaseAdapter.java | 37 private DOMTestCase test; field in JUnitTestCaseAdapter 42 public JUnitTestCaseAdapter(DOMTestCase test) { in JUnitTestCaseAdapter() 180 public void fail(DOMTestCase test, String assertID) { in fail() 184 public void assertTrue(DOMTestCase test, String assertID, boolean actual) { in assertTrue() 188 public void assertFalse(DOMTestCase test, String assertID, boolean actual) { in assertFalse() 194 public void assertNull(DOMTestCase test, String assertID, Object actual) { in assertNull() 198 public void assertNotNull(DOMTestCase test, String assertID, Object actual) { in assertNotNull() 202 public void assertSame(DOMTestCase test, String assertID, Object expected, Object actual) { in assertSame() 222 public void assertInstanceOf(DOMTestCase test, String assertID, Object obj, Class cls) { in assertInstanceOf() 226 public void assertSize(DOMTestCase test, String assertID, int expectedSize, NodeList collection) { in assertSize() [all …]
|
/libcore/ojluni/src/test/java/time/test/java/time/temporal/ |
D | TestDateTimeValueRange.java | 94 ValueRange test = ValueRange.of(1, 12); in test_of_longlong() local 104 ValueRange test = ValueRange.of(1, 123456789012345L); in test_of_longlong_big() local 122 ValueRange test = ValueRange.of(1, 28, 31); in test_of_longlonglong() local 161 ValueRange test = ValueRange.of(sMin, lMin, sMax, lMax); in test_of_longlonglonglong() local 193 ValueRange test = ValueRange.of(1, 28, 31); in test_isValidValue_long() local 206 ValueRange test = ValueRange.of(1, 28, 31); in test_isValidValue_long_int() local 214 ValueRange test = ValueRange.of(1, 28, Integer.MAX_VALUE + 1L); in test_isValidValue_long_long() local 226 ValueRange test = ValueRange.of(sMin, lMin, sMax, lMax); in test_of_checkValidValue() local 235 ValueRange test = ValueRange.of(sMin, lMin, sMax, lMax); in test_of_checkValidValueMinException() local 241 ValueRange test = ValueRange.of(sMin, lMin, sMax, lMax); in test_of_checkValidValueMaxException() local [all …]
|
/libcore/luni/src/test/etc/loading-test-jar/ |
D | Test1.java | 17 package test; package 23 public static String test() { in test() method in Test1
|
/libcore/dalvik/test-rules/src/test/java/libcore/dalvik/system/ |
D | CloseGuardSupportTest.java | 44 @Test public void test() { in test() method in CloseGuardSupportTest.DoesReleaseResource 59 @Test public void test() { in test() method in CloseGuardSupportTest.DoesReleaseResourceTwice 77 @Test public void test() { in test() method in CloseGuardSupportTest.DoesNotReleaseResource 95 @Test public void test() { in test() method in CloseGuardSupportTest.DoesNotReleaseResourceDueToFailure 116 public void test() { in test() method in CloseGuardSupportTest.ResourceOwnerDoesNotOverrideFinalize 136 public void test() { in test() method in CloseGuardSupportTest.ResourceOwnerOverridesFinalizeButDoesNotReportLeak 159 public void test() { in test() method in CloseGuardSupportTest.ResourceOwnerOverridesFinalizeAndReportsLeak
|