Home
last modified time | relevance | path

Searched refs:expectedValue (Results 1 – 12 of 12) sorted by relevance

/libcore/luni/src/test/java/libcore/libcore/io/
DMemoryMappedFileTest.java241 short expectedValue = (short) ((bytes[0] << 8) | bytes[1]); in testReadShort_bigEndian() local
242 assertReadShortSucceeds(iterator, expectedValue); in testReadShort_bigEndian()
248 expectedValue = (short) ((bytes[1] << 8) | bytes[2]); in testReadShort_bigEndian()
249 assertReadShortSucceeds(iterator, expectedValue); in testReadShort_bigEndian()
263 short expectedValue = (short) ((bytes[1] << 8) | bytes[0]); in testReadShort_littleEndian() local
264 assertReadShortSucceeds(iterator, expectedValue); in testReadShort_littleEndian()
270 expectedValue = (short) ((bytes[2] << 8) | bytes[1]); in testReadShort_littleEndian()
271 assertReadShortSucceeds(iterator, expectedValue); in testReadShort_littleEndian()
303 int expectedValue = (bytes[0] << 24) | (bytes[1] << 16) | (bytes[2] << 8) | bytes[3]; in testReadInt_bigEndian() local
304 assertReadIntSucceeds(iterator, expectedValue); in testReadInt_bigEndian()
[all …]
/libcore/ojluni/src/test/java/time/tck/java/time/format/
DTCKLocalizedFieldParser.java98 …d test_parse_textField(String pattern, String text, int pos, int expectedPos, long expectedValue) { in test_parse_textField() argument
127 assertEquals(value, expectedValue, "Value incorrect for " + field); in test_parse_textField()
149 …rse_textLocalDate(String pattern, String text, int pos, int expectedPos, LocalDate expectedValue) { in test_parse_textLocalDate() argument
164 assertEquals(result, expectedValue, "LocalDate incorrect for " + pattern); in test_parse_textLocalDate()
186 …rse_WeekBasedYear(String pattern, String text, int pos, int expectedPos, LocalDate expectedValue) { in test_parse_WeekBasedYear() argument
201 …assertEquals(result, expectedValue, "LocalDate incorrect for " + pattern + ", weekDef: " + weekDef… in test_parse_WeekBasedYear()
DTCKDateTimeParseResolver.java832 … public void test_resolveClockHourOfAmPm(ResolverStyle style, long value, Integer expectedValue) { in test_resolveClockHourOfAmPm() argument
836 if (expectedValue != null) { in test_resolveClockHourOfAmPm()
842 assertEquals(accessor.getLong(HOUR_OF_AMPM), expectedValue.longValue()); in test_resolveClockHourOfAmPm()
875 public void test_resolveAmPm(ResolverStyle style, long value, Integer expectedValue) { in test_resolveAmPm() argument
879 if (expectedValue != null) { in test_resolveAmPm()
884 assertEquals(accessor.getLong(AMPM_OF_DAY), expectedValue.longValue()); in test_resolveAmPm()
/libcore/ojluni/src/test/java/time/test/java/time/format/
DTestFractionPrinterParser.java245 int expectedValue = fixParsedValue(maxWidth, value); in test_reverseParse() local
248 … assertParsed(parsed, NANO_OF_SECOND, value == 0 && minWidth == 0 ? null : (long) expectedValue); in test_reverseParse()
256 int expectedValue = fixParsedValue(maxWidth, value); in test_reverseParse_noDecimalPoint() local
257 … assertParsed(parsed, NANO_OF_SECOND, value == 0 && minWidth == 0 ? null : (long) expectedValue); in test_reverseParse_noDecimalPoint()
263 int expectedValue = fixParsedValue(maxWidth, value); in test_reverseParse_followedByNonDigit() local
266 … assertParsed(parsed, NANO_OF_SECOND, value == 0 && minWidth == 0 ? null : (long) expectedValue); in test_reverseParse_followedByNonDigit()
281 int expectedValue = fixParsedValue(maxWidth, value); in test_reverseParse_preceededByNonDigit() local
284 … assertParsed(parsed, NANO_OF_SECOND, value == 0 && minWidth == 0 ? null : (long) expectedValue); in test_reverseParse_preceededByNonDigit()
DTestTextParser.java263 …andaloneText(Locale locale, TemporalField field, TextStyle style, int expectedValue, String input)… in test_parseStandaloneText() argument
266 assertEquals(formatter.parseUnresolved(input, pos).getLong(field), (long) expectedValue); in test_parseStandaloneText()
430 …public void test_parseLenientText(Locale locale, TemporalField field, int expectedValue, String in… in test_parseLenientText() argument
434 assertEquals(formatter.parseUnresolved(input, pos).getLong(field), (long) expectedValue); in test_parseLenientText()
DTestNumberParser.java167 …nStyle signStyle, int subsequentWidth, String text, int pos, int expectedPos, long expectedValue) { in test_parse_fresh() argument
180 assertEquals(parsed.getLong(DAY_OF_MONTH), expectedValue); in test_parse_fresh() local
187 …nStyle signStyle, int subsequentWidth, String text, int pos, int expectedPos, long expectedValue) { in test_parse_textField() argument
200 assertEquals(parsed.getLong(DAY_OF_WEEK), expectedValue); in test_parse_textField() local
/libcore/luni/src/test/java/libcore/java/util/zip/
DDeflaterTest.java92 int expectedValue = i < expected.length ? expected[i] : 0;
93 assertEquals(expectedValue, decompressed[i]);
/libcore/ojluni/src/main/java/sun/misc/
DUnsafe.java135 int expectedValue, int newValue); in compareAndSwapInt() argument
151 long expectedValue, long newValue); in compareAndSwapLong() argument
167 Object expectedValue, Object newValue); in compareAndSwapObject() argument
/libcore/ojluni/annotations/hiddenapi/sun/misc/
DUnsafe.java67 java.lang.Object obj, long offset, int expectedValue, int newValue); in compareAndSwapInt() argument
71 java.lang.Object obj, long offset, long expectedValue, long newValue); in compareAndSwapLong() argument
77 java.lang.Object expectedValue, in compareAndSwapObject() argument
/libcore/luni/src/test/java/libcore/java/util/
DAbstractListTest.java85 Integer expectedValue = list.get(2); in spliterator_modification_failFast() local
102 assertEquals(expectedValue, receivedValue.get()); in spliterator_modification_failFast()
DLinkedHashMapTest.java393 Object expectedValue = expected.getValue(); in check_eldest_comparibleWithIterationOrder() local
394 assertEntry(expectedKey, expectedValue, eldest(map)); in check_eldest_comparibleWithIterationOrder()
/libcore/jsr166-tests/src/test/java/jsr166/
DJSR166TestCase.java1304 <T> void checkTimedGet(Future<T> f, T expectedValue, long timeoutMillis) {
1307 assertEquals(expectedValue, f.get(timeoutMillis, MILLISECONDS));
1313 <T> void checkTimedGet(Future<T> f, T expectedValue) {
1314 checkTimedGet(f, expectedValue, LONG_DELAY_MS);