Home
last modified time | relevance | path

Searched defs:test (Results 1 – 25 of 327) sorted by relevance

12345678910>>...14

/libcore/ojluni/src/test/java/time/test/java/time/
DTestOffsetDateTime.java130 OffsetDateTime test = base.withOffsetSameLocal(OFFSET_PTWO); in test_withOffsetSameLocal() local
138 OffsetDateTime test = base.withOffsetSameLocal(OFFSET_PONE); in test_withOffsetSameLocal_noChange() local
145 OffsetDateTime test = base.withOffsetSameInstant(OFFSET_PONE); in test_withOffsetSameInstant_noChange() local
152 OffsetDateTime test = base.withYear(2008); in test_withYear_noChange() local
159 OffsetDateTime test = base.withMonth(6); in test_withMonth_noChange() local
166 OffsetDateTime test = base.withDayOfMonth(30); in test_withDayOfMonth_noChange() local
179 OffsetDateTime test = base.withHour(11); in test_withHour_noChange() local
186 OffsetDateTime test = base.withMinute(30); in test_withMinute_noChange() local
193 OffsetDateTime test = base.withSecond(59); in test_withSecond_noChange() local
200 OffsetDateTime test = base.withNano(1); in test_withNanoOfSecond_noChange() local
[all …]
DTestZoneId.java116 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 …]
DTestMonthDay.java93 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
DTestOffsetDateTime_instants.java100 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 …]
/libcore/ojluni/src/test/java/time/tck/java/time/format/
DTCKDateTimeFormatter.java138 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/
DTCKYearMonth.java163 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 …]
DTCKClock_Tick.java88 …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.tickMillis(PARIS); in test_tickMillis_ZoneId() local
175 Clock test = Clock.tickSeconds(PARIS); in test_tickSeconds_ZoneId() local
189 Clock test = Clock.tickMinutes(PARIS); in test_tickMinutes_ZoneId() local
203 Clock test = Clock.tick(Clock.system(PARIS), Duration.ofMillis(500)); in test_withZone() local
210 Clock test = Clock.tick(Clock.system(PARIS), Duration.ofMillis(500)); in test_withZone_equal() local
DTCKZoneOffset.java129 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 …]
/libcore/ojluni/src/test/java/time/tck/java/time/zone/serial/
DTCKZoneOffsetTransitionRuleSerialization.java88 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
DTCKZoneOffsetTransitionSerialization.java86 …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/
DTCKTemporalAdjusters.java92 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/
DAttributedCharacterIteratorTest.java30 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/
DTCKFixedZoneRules.java112 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 …]
DTCKZoneRules.java117 ZoneRules test = europeLondon(); in test_London() local
123 ZoneRules test = europeLondon(); in test_London_preTimeZones() local
136 ZoneRules test = europeLondon(); in test_London_getOffset() local
153 ZoneRules test = europeLondon(); in test_London_getOffset_toDST() local
169 ZoneRules test = europeLondon(); in test_London_getOffset_fromDST() local
185 ZoneRules test = europeLondon(); in test_London_getOffsetInfo() local
202 ZoneRules test = europeLondon(); in test_London_getOffsetInfo_toDST() local
218 ZoneRules test = europeLondon(); in test_London_getOffsetInfo_fromDST() local
234 ZoneRules test = europeLondon(); in test_London_getOffsetInfo_gap() local
260 ZoneRules test = europeLondon(); in test_London_getOffsetInfo_overlap() local
[all …]
/libcore/dom/src/test/java/org/w3c/domts/
DJUnitTestSuiteAdapter.java23 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
DDOMTestFramework.java34 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 …]
DJUnitTestCaseAdapter.java37 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/lang/invoke/
DFilterArgumentsTest.java47 FilterTest test = new FilterTest( in testFilterA_B_C() local
54 FilterTest test = new FilterTest( in testFilterA_B() local
61 FilterTest test = new FilterTest( in testFilterB_C() local
68 FilterTest test = new FilterTest(filterArguments(MH_TEST, 1, MH_FILTER_B)); in testFilterB() local
74 FilterTest test = new FilterTest(filterArguments(MH_TEST, 2, MH_FILTER_C)); in testFilterC() local
107 static String test(String s, int i, char c) { in test() method in FilterArgumentsTest.FilterTest
/libcore/ojluni/src/test/java/time/test/java/time/temporal/
DTestDateTimeValueRange.java95 ValueRange test = ValueRange.of(1, 12); in test_of_longlong() local
105 ValueRange test = ValueRange.of(1, 123456789012345L); in test_of_longlong_big() local
123 ValueRange test = ValueRange.of(1, 28, 31); in test_of_longlonglong() local
167 ValueRange test = ValueRange.of(sMin, lMin, sMax, lMax); in test_of_longlonglonglong() local
204 ValueRange test = ValueRange.of(1, 28, 31); in test_isValidValue_long() local
217 ValueRange test = ValueRange.of(1, 28, 31); in test_isValidValue_long_int() local
225 ValueRange test = ValueRange.of(1, 28, Integer.MAX_VALUE + 1L); in test_isValidValue_long_long() local
237 ValueRange test = ValueRange.of(sMin, lMin, sMax, lMax); in test_of_checkValidValue() local
246 ValueRange test = ValueRange.of(sMin, lMin, sMax, lMax); in test_of_checkValidValueMinException() local
252 ValueRange test = ValueRange.of(sMin, lMin, sMax, lMax); in test_of_checkValidValueMaxException() local
[all …]
/libcore/ojluni/src/test/java/math/BigInteger/
DBitLengthOverflow.java36 private static void test(Supplier<BigInteger> s) { in test() method in BitLengthOverflow
52 test(() -> { in main() method
61 test(() -> { in main() method
/libcore/dalvik/test-rules/src/test/java/libcore/dalvik/system/
DCloseGuardSupportTest.java44 @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
/libcore/luni/src/test/etc/loading-test-jar/
DTest1.java17 package test; package
23 public static String test() { in test() method in Test1
/libcore/ojluni/src/test/java/util/function/
DPredicateNotTest.java71 public boolean test(String s) { in test() method in PredicateNotTest.IsEmptyPredicate
77 public void test() { in test() method in PredicateNotTest
78 List<String> test = List.of( in test() local
/libcore/ojluni/src/test/java/util/PriorityQueue/
DAddNonComparable.java56 static <E> void test(Queue<E> queue, Supplier<E> supplier, in test() method in AddNonComparable
77 test(new PriorityQueue<>(), NonComparable::new, in queues() method
83 test(new PriorityQueue<>(), AComparable::new, in queues() method in AddNonComparable
89 test(new PriorityBlockingQueue<>(), NonComparable::new, in queues() method in AddNonComparable
94 test(new PriorityBlockingQueue<>(), AComparable::new, in queues() method in AddNonComparable
101 static <E> void test(SortedSet<E> set, Supplier<E> supplier, in test() method
135 static <K> void test(SortedMap<K,Boolean> map, Supplier<K> supplier, in test() method
/libcore/ojluni/src/test/java/util/UUID/
DUUIDTest.java119 UUID test = UUID.fromString(str); in testFromStringError() local
127 UUID test = UUID.randomUUID(); in versionTest() local
163 UUID test = UUID.randomUUID(); in variantTest() local
187 UUID test = UUID.randomUUID(); in timestampTest() local
206 UUID test = UUID.randomUUID(); in clockSequenceTest() local
228 UUID test = UUID.randomUUID(); in nodeTest() local

12345678910>>...14