- Sort Score
- Num 10 results
- Language All
Results 121 - 130 of 187 for simulate (0.07 seconds)
-
mockwebserver/src/main/kotlin/mockwebserver3/MockResponse.kt
} /** * Throttles the request reader and response writer to sleep for the given period after each * series of [bytesPerPeriod] bytes are transferred. Use this to simulate network behavior. */ public fun throttleBody( bytesPerPeriod: Long, period: Long, unit: TimeUnit, ): Builder = apply { throttleBytesPerPeriod = bytesPerPeriodCreated: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Fri Jun 20 11:46:46 GMT 2025 - 17.8K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/ioctl/SrvCopychunkCopyTest.java
SrvCopychunk mockChunk1 = mock(SrvCopychunk.class); SrvCopychunk mockChunk2 = mock(SrvCopychunk.class); SrvCopychunk mockChunk3 = mock(SrvCopychunk.class); // Simulate different encode return values when(mockChunk1.encode(any(byte[].class), anyInt())).thenReturn(20); when(mockChunk2.encode(any(byte[].class), anyInt())).thenReturn(24);
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 23.1K bytes - Click Count (0) -
src/test/java/jcifs/ACETest.java
} } @Nested @DisplayName("Windows Access Check Algorithm Tests") class WindowsAccessCheckTests { @Test @DisplayName("Should simulate access check algorithm from documentation") void shouldSimulateDocumentationExample() { // Example from ACE interface documentation: user WNET\\alice with 0x00000003 (FILE_READ_DATA | FILE_WRITE_DATA)Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 24.4K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/helper/CrawlingInfoHelperTest.java
private List<CrawlingInfoParam> storedParams; @Override public CrawlingInfo getLast(String sessionId) { return null; // Return null to simulate create scenario } @Override public void store(CrawlingInfo entity) { storedInfo = entity; assertEquals(sessionId, entity.getSessionId());
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Thu Mar 12 01:46:45 GMT 2026 - 28.7K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/cors/CorsHandlerTest.java
processCalled = true; processOrigin = origin; processRequest = request; processResponse = response; // Simulate adding headers for testing if (response instanceof HttpServletResponse) { HttpServletResponse httpResponse = (HttpServletResponse) response;Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Sat Mar 21 06:04:58 GMT 2026 - 26.3K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/thumbnail/impl/CommandGeneratorTest.java
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 13 23:01:26 GMT 2026 - 27.8K bytes - Click Count (0) -
docs/smb3-features/06-witness-protocol-design.md
file.createNewFile(); // Monitor for witness notifications TestWitnessListener listener = new TestWitnessListener(); // Simulate cluster failover (would require test environment setup) // ... trigger server failover ... // Verify that witness notification was received and handled
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 02:53:50 GMT 2025 - 42K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/internal/cache/DiskLruCacheTest.kt
// incomplete. val creator = cache.edit("k1")!! creator.newSink(0).buffer().use { it.writeUtf8("Hello") } // Simulate a severe Filesystem failure on the first initialization. filesystem.setFaultyDelete(cacheDir / "k1.0.tmp", true) filesystem.setFaultyDelete(cacheDir, true) cache =Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Feb 03 22:17:59 GMT 2026 - 59.4K bytes - Click Count (0) -
src/test/java/jcifs/ntlmssp/Type2MessageTest.java
when(mockNameServiceClient.getLocalHost()).thenReturn(mockHost); when(mockHost.getHostName()).thenReturn(TEST_HOSTNAME); when(mockConfig.isUseUnicode()).thenReturn(false); // Simulate OEM encoding when(mockConfig.getDefaultDomain()).thenReturn(TEST_DOMAIN); Type2Message originalMessage = new Type2Message(mockContext,
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 38.9K bytes - Click Count (0) -
src/bytes/buffer_test.go
var bb Buffer bb.Grow(16 << 20) b.SetBytes(int64(bb.Available())) b.ReportAllocs() for i := 0; i < b.N; i++ { bb.Reset() b := bb.AvailableBuffer() b = b[:cap(b)] // use max capacity to simulate a large append operation bb.Write(b) // should be nearly infinitely fast }
Created: Tue Apr 07 11:13:11 GMT 2026 - Last Modified: Fri Nov 14 19:01:17 GMT 2025 - 19.4K bytes - Click Count (0)