/libcore/ojluni/src/test/java/time/tck/java/time/format/ |
H A D | TCKLocalizedFieldParser.java | 98 public void test_parse_textField(String pattern, String text, int pos, int expectedPos, long expectedValue) { argument 127 assertEquals(value, expectedValue, "Value incorrect for " + field); 149 public void test_parse_textLocalDate(String pattern, String text, int pos, int expectedPos, LocalDate expectedValue) { argument 164 assertEquals(result, expectedValue, "LocalDate incorrect for " + pattern); 186 public void test_parse_WeekBasedYear(String pattern, String text, int pos, int expectedPos, LocalDate expectedValue) { argument 201 assertEquals(result, expectedValue, "LocalDate incorrect for " + pattern + ", weekDef: " + weekDef);
|
H A D | TCKDateTimeParseResolver.java | 832 public void test_resolveClockHourOfAmPm(ResolverStyle style, long value, Integer expectedValue) { argument 836 if (expectedValue != null) { 842 assertEquals(accessor.getLong(HOUR_OF_AMPM), expectedValue.longValue()); 875 public void test_resolveAmPm(ResolverStyle style, long value, Integer expectedValue) { argument 879 if (expectedValue != null) { 884 assertEquals(accessor.getLong(AMPM_OF_DAY), expectedValue.longValue());
|
/libcore/ojluni/src/test/java/time/test/java/time/format/ |
H A D | TestNumberParser.java | 167 public void test_parse_fresh(int minWidth, int maxWidth, SignStyle signStyle, int subsequentWidth, String text, int pos, int expectedPos, long expectedValue) { argument 180 assertEquals(parsed.getLong(DAY_OF_MONTH), expectedValue); 187 public void test_parse_textField(int minWidth, int maxWidth, SignStyle signStyle, int subsequentWidth, String text, int pos, int expectedPos, long expectedValue) { argument 200 assertEquals(parsed.getLong(DAY_OF_WEEK), expectedValue);
|
H A D | TestTextParser.java | 263 public void test_parseStandaloneText(Locale locale, TemporalField field, TextStyle style, int expectedValue, String input) { argument 266 assertEquals(formatter.parseUnresolved(input, pos).getLong(field), (long) expectedValue); 430 public void test_parseLenientText(Locale locale, TemporalField field, int expectedValue, String input) { argument 434 assertEquals(formatter.parseUnresolved(input, pos).getLong(field), (long) expectedValue);
|
/libcore/luni/src/test/java/libcore/libcore/io/ |
H A D | MemoryMappedFileTest.java | 242 short expectedValue = (short) ((bytes[0] << 8) | bytes[1]); 243 assertReadShortSucceeds(iterator, expectedValue); 249 expectedValue = (short) ((bytes[1] << 8) | bytes[2]); 250 assertReadShortSucceeds(iterator, expectedValue); 264 short expectedValue = (short) ((bytes[1] << 8) | bytes[0]); 265 assertReadShortSucceeds(iterator, expectedValue); 271 expectedValue = (short) ((bytes[2] << 8) | bytes[1]); 272 assertReadShortSucceeds(iterator, expectedValue); 304 int expectedValue = (bytes[0] << 24) | (bytes[1] << 16) | (bytes[2] << 8) | bytes[3]; 305 assertReadIntSucceeds(iterator, expectedValue); 610 assertReadIntSucceeds(BufferIterator iterator, int expectedValue) argument 626 assertReadShortSucceeds(BufferIterator iterator, short expectedValue) argument 643 assertReadByteSucceeds(BufferIterator iterator, byte expectedValue) argument [all...] |
/libcore/ojluni/src/main/java/sun/misc/ |
H A D | Unsafe.java | 125 * @param expectedValue expected value of the field 133 int expectedValue, int newValue); 141 * @param expectedValue expected value of the field 149 long expectedValue, long newValue); 157 * @param expectedValue expected value of the field 165 Object expectedValue, Object newValue); 132 compareAndSwapInt(Object obj, long offset, int expectedValue, int newValue) argument 148 compareAndSwapLong(Object obj, long offset, long expectedValue, long newValue) argument 164 compareAndSwapObject(Object obj, long offset, Object expectedValue, Object newValue) argument
|
/libcore/jsr166-tests/src/test/java/jsr166/ |
H A D | JSR166TestCase.java | 1304 <T> void checkTimedGet(Future<T> f, T expectedValue, long timeoutMillis) { argument 1307 assertEquals(expectedValue, f.get(timeoutMillis, MILLISECONDS)); 1313 <T> void checkTimedGet(Future<T> f, T expectedValue) { argument 1314 checkTimedGet(f, expectedValue, LONG_DELAY_MS);
|