- Sort Score
- Num 10 results
- Language All
Results 101 - 110 of 630 for EXPECTED (0.42 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
android/guava-testlib/src/com/google/common/collect/testing/testers/ListSubListTester.java
subList.remove(0); List<E> expected = asList(createSamplesArray()).subList(1, getNumElements()); expectContents(expected); } @ListFeature.Require(SUPPORTS_REMOVE_WITH_INDEX) @CollectionSize.Require(absent = ZERO) public void testSubList_subListClearAffectsOriginal() { List<E> subList = getList().subList(0, 1); subList.clear();
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 13.5K bytes - Click Count (0) -
guava-testlib/src/com/google/common/collect/testing/testers/ListSubListTester.java
subList.remove(0); List<E> expected = asList(createSamplesArray()).subList(1, getNumElements()); expectContents(expected); } @ListFeature.Require(SUPPORTS_REMOVE_WITH_INDEX) @CollectionSize.Require(absent = ZERO) public void testSubList_subListClearAffectsOriginal() { List<E> subList = getList().subList(0, 1); subList.clear();
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 13.5K bytes - Click Count (0) -
guava-testlib/src/com/google/common/util/concurrent/testing/MockFutureListener.java
} /** * Verify that the listener completes in a reasonable amount of time, and Asserts that the future * returns the expected data. * * @throws Throwable if the listener isn't called or if it resulted in a throwable or if the * result doesn't match the expected value. */ public void assertSuccess(Object expectedData) throws Throwable {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri May 12 18:12:42 GMT 2023 - 3K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/ResponseBodyJvmTest.kt
override fun source(): BufferedSource = Buffer().writeUtf8("hello") } assertFailsWith<IOException> { body.bytes() }.also { expected -> assertThat(expected.message).isEqualTo( "Content-Length (10) and stream length (5) disagree", ) } } @Test fun bytesThrowsMoreThanIntMaxValue() { val body: ResponseBody =Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Wed Mar 19 19:25:20 GMT 2025 - 12.4K bytes - Click Count (0) -
android/guava-testlib/src/com/google/common/collect/testing/testers/MapMergeTester.java
}); fail("Expected NullPointerException or UnsupportedOperationException"); } catch (NullPointerException | UnsupportedOperationException expected) { } } public void testMergeNullFunction() { try { getMap().merge(k0(), v3(), null); fail("Expected NullPointerException or UnsupportedOperationException");Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 6.8K bytes - Click Count (0) -
guava-tests/test/com/google/common/util/concurrent/TestPlatform.java
fail(); } catch (TimeoutException expected) { } catch (ExecutionException e) { throw new AssertionError(e); } } static void verifyTimedGetOnPendingFuture(Future<?> future) { try { getUninterruptibly(future, 0, SECONDS); fail(); } catch (TimeoutException expected) { } catch (ExecutionException e) { throw new AssertionError(e); }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 2.7K bytes - Click Count (0) -
guava-tests/test/com/google/common/primitives/SignedBytesTest.java
// Only compare the sign of the result of compare(). int expected = Byte.compare(x, y); int actual = SignedBytes.compare(x, y); if (expected == 0) { assertWithMessage("%s, %s", x, y).that(actual).isEqualTo(expected); } else if (expected < 0) { assertWithMessage("%s, %s (expected: %s, actual%s)", x, y, expected, actual) .that(actual < 0) .isTrue();
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Dec 11 20:45:32 GMT 2025 - 7K bytes - Click Count (0) -
android/guava-testlib/src/com/google/common/collect/testing/google/MultimapValuesTester.java
public void testValues() { List<V> expected = new ArrayList<>(); for (Entry<K, V> entry : getSampleElements()) { expected.add(entry.getValue()); } assertEqualIgnoringOrder(expected, multimap().values()); } @CollectionFeature.Require(KNOWN_ORDER) public void testValuesInOrder() { List<V> expected = new ArrayList<>(); for (Entry<K, V> entry : getOrderedElements()) {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue May 13 17:27:14 GMT 2025 - 2.6K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/HandshakeTest.kt
arrayOf(serverCertificate.certificate, serverIntermediate.certificate), null, ) assertFailsWith<IOException> { sslSession.handshake() }.also { expected -> assertThat(expected).hasMessage("cipherSuite == SSL_NULL_WITH_NULL_NULL") } } @Test fun tlsWithNullNullNull() { val sslSession = FakeSSLSession( "TLSv1.3",
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Wed Mar 19 19:25:20 GMT 2025 - 4.2K bytes - Click Count (0) -
guava-tests/test/com/google/common/io/CountingInputStreamTest.java
public void testMarkNotSet() { IOException expected = assertThrows(IOException.class, () -> counter.reset()); assertThat(expected).hasMessageThat().isEqualTo("Mark not set"); } public void testMarkNotSupported() { counter = new CountingInputStream(new UnmarkableInputStream()); IOException expected = assertThrows(IOException.class, () -> counter.reset()); assertThat(expected).hasMessageThat().isEqualTo("Mark not supported");
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Dec 19 18:03:30 GMT 2024 - 3.5K bytes - Click Count (0)