- Sort Score
- Result 10 results
- Languages All
Results 5121 - 5130 of 5,326 for Returns (0.14 sec)
-
src/test/java/jcifs/tests/persistent/HandleReconnectorTest.java
this.shouldSucceed = shouldSucceed; } @Override protected boolean performReconnection(HandleInfo info) throws Exception { if (shouldSucceed) { return true; } else { throw new IOException("Simulated reconnection failure"); } } public void testCreateReconnectionRequest(HandleInfo handle) {Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 21 04:51:33 UTC 2025 - 5.6K bytes - Viewed (0) -
src/test/java/jcifs/pac/PacTest.java
// Test with mocked PacMac to avoid complex signature calculation try (MockedStatic<PacMac> pacMacMock = mockStatic(PacMac.class)) { // Mock the calculateMac method to return a valid checksum byte[] mockChecksum = new byte[16]; pacMacMock.when(() -> PacMac.calculateMac(anyInt(), any(), any())).thenReturn(mockChecksum); // Create a minimal valid PAC structureRegistered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 7.9K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/InterceptorTest.kt
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Fri Jun 20 11:46:46 UTC 2025 - 28.2K bytes - Viewed (0) -
okhttp-dnsoverhttps/src/test/java/okhttp3/dnsoverhttps/DnsOverHttpsTest.kt
.build() private fun buildLocalhost( bootstrapClient: OkHttpClient, includeIPv6: Boolean, post: Boolean = false, ): DnsOverHttps { val url = server.url("/lookup?ct") return DnsOverHttps .Builder() .client(bootstrapClient) .includeIPv6(includeIPv6) .resolvePrivateAddresses(true) .url(url) .post(post) .build() }
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Jun 18 12:28:21 UTC 2025 - 11.7K bytes - Viewed (0) -
docs/en/docs/deployment/docker.md
```Python from typing import Union from fastapi import FastAPI app = FastAPI() @app.get("/") def read_root(): return {"Hello": "World"} @app.get("/items/{item_id}") def read_item(item_id: int, q: Union[str, None] = None): return {"item_id": item_id, "q": q} ``` ### Dockerfile { #dockerfile } Now in the same project directory create a file `Dockerfile` with:
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Sun Aug 31 09:15:41 UTC 2025 - 29.5K bytes - Viewed (1) -
android/guava-tests/test/com/google/common/base/JoinerTest.java
this.delegate = delegate; this.delta = delta; } @Override protected List<E> delegate() { return delegate; } @Override public int size() { return delegate.size() + delta; } } @SuppressWarnings("JoinIterableIterator") // explicitly testing iterator overload, too public void testNoSpecialNullBehavior() {Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 12.7K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/internal/ws/RealWebSocketTest.kt
* it requires that bytes have already been flushed by the server. */ fun clientSourceBufferSize(): Long { source.request(1L) return source.buffer.size } fun processNextFrame(): Boolean { taskFaker.runTasks() return webSocket!!.processNextFrame() } override fun cancel() { canceled = true delegate.cancel() } }Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Thu Jul 31 04:18:40 UTC 2025 - 18.7K bytes - Viewed (0) -
okhttp/src/androidMain/kotlin/okhttp3/internal/platform/android/AndroidLog.kt
// We need to handle long logger names before they hit Log. // java.lang.IllegalArgumentException: Log tag "okhttp3.mockwebserver.MockWebServer" exceeds limit of 23 characters return knownLoggers[loggerName] ?: loggerName.take(23) } fun enable() { try { for ((logger, tag) in knownLoggers) { enableLogging(logger, tag) } } catch (re: RuntimeException) {Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Tue Jul 22 20:03:31 UTC 2025 - 4K bytes - Viewed (0) -
guava-tests/test/com/google/common/base/CharMatcherTest.java
} @GwtIncompatible // java.util.BitSet private static BitSet bitSet(String chars) { return bitSet(chars.toCharArray()); } @GwtIncompatible // java.util.BitSet private static BitSet bitSet(char[] chars) { BitSet tmp = new BitSet(); for (char c : chars) { tmp.set(c); } return tmp; } @GwtIncompatible // java.util.Random, java.util.BitSet
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 30.4K bytes - Viewed (0) -
mockwebserver/src/test/java/mockwebserver3/MockWebServerTest.kt
assertThat(inputStream.read()).isEqualTo('B'.code) assertThat(inputStream.read()).isEqualTo('C'.code) try { inputStream.read() // if Content-Length was accurate, this would return -1 immediately fail<Unit>() } catch (expected: SocketTimeoutException) { // Expected. } val urlConnection2 = server.url("/").toUrl().openConnection()
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Sun Aug 03 22:38:00 UTC 2025 - 28K bytes - Viewed (0)