- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for assertSuccessful (0.08 sec)
-
guava-tests/test/com/google/common/util/concurrent/AbstractAbstractFutureTest.java
delegate.set(5); assertThat(future.setFuture(delegate)).isTrue(); assertSuccessful(future, 5); } public void testSetFutureDelegateLaterSuccessful() throws Exception { assertThat(future.setFuture(delegate)).isTrue(); delegate.set(6); assertSuccessful(future, 6); } public void testSetFutureDelegateAlreadyCancelled() throws Exception { delegate.cancel(
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Oct 21 15:41:36 UTC 2024 - 15.5K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/util/concurrent/AbstractAbstractFutureTest.java
delegate.set(5); assertThat(future.setFuture(delegate)).isTrue(); assertSuccessful(future, 5); } public void testSetFutureDelegateLaterSuccessful() throws Exception { assertThat(future.setFuture(delegate)).isTrue(); delegate.set(6); assertSuccessful(future, 6); } public void testSetFutureDelegateAlreadyCancelled() throws Exception { delegate.cancel(
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Oct 21 15:41:36 UTC 2024 - 15.5K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/RouteFailureTest.kt
if (cleanShutdown) { assertSuccessful() assertCode(200) assertThat(server2.requestCount).isEqualTo(1) } else { this.assertFailure(SocketTimeoutException::class.java) } } println("\n\nRequest to ${server2.inetSocketAddress}") executeSynchronously(request) .assertSuccessful() .assertCode(200) }
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Tue May 14 17:48:07 UTC 2024 - 11.9K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/RecordedResponse.kt
) = apply { assertThat(request.headers(name)).containsExactly(*values) } fun assertCode(expectedCode: Int) = apply { assertThat(response!!.code).isEqualTo(expectedCode) } fun assertSuccessful() = apply { assertThat(failure).isNull() assertThat(response!!.isSuccessful).isTrue() } fun assertNotSuccessful() = apply { assertThat(response!!.isSuccessful).isFalse()
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 5.3K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/CallTest.kt
val call = client.newCall(request) call.enqueue(callback) val cloned = call.clone() cloned.enqueue(callback) val firstResponse = callback.await(request.url).assertSuccessful() val secondResponse = callback.await(request.url).assertSuccessful() val bodies: MutableSet<String?> = LinkedHashSet() bodies.add(firstResponse.body) bodies.add(secondResponse.body) assertThat(bodies).contains("abc")
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Wed Apr 10 19:46:48 UTC 2024 - 142.5K bytes - Viewed (0)