- Sort Score
- Num 10 results
- Language All
Results 71 - 80 of 187 for simulate (0.08 seconds)
-
okhttp-testing-support/src/main/kotlin/okhttp3/internal/concurrent/TaskFaker.kt
val sleepUntil = nanoTime + durationNanos yieldUntil { nanoTime >= sleepUntil } } } /** * Artificially stall until manually resumed by the test thread with [runTasks]. Use this to * simulate races in tasks that doesn't have a deterministic sequence. */ fun yield() { taskRunner.assertLockNotHeld() taskRunner.withLock { yieldUntil() } }Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Wed May 28 23:28:25 GMT 2025 - 11.9K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/exec/CrawlerTest.java
// We can't easily test the static process method directly without full container setup // So we'll test the Options behavior separately assertNull(options.sessionId); // Simulate what process() does - generate default sessionId if (options.sessionId == null) { SimpleDateFormat sdf = new SimpleDateFormat("yyyyMMddHHmmss");
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 13 23:01:26 GMT 2026 - 30.8K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/util/concurrent/InterruptibleTaskTest.java
new CountDownLatch(1).await(); // the interrupt will wake us up } catch (InterruptedException ie) { // continue } LockSupport.unpark(Thread.currentThread()); // simulate a spurious wakeup. return null; } @Override boolean isDone() { return false; } @Override
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 22:45:21 GMT 2026 - 7.2K bytes - Click Count (0) -
guava-tests/test/com/google/common/util/concurrent/InterruptibleTaskTest.java
new CountDownLatch(1).await(); // the interrupt will wake us up } catch (InterruptedException ie) { // continue } LockSupport.unpark(Thread.currentThread()); // simulate a spurious wakeup. return null; } @Override boolean isDone() { return false; } @Override
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 22:45:21 GMT 2026 - 7.2K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/ds/DataStoreTest.java
dataStore = new DataStore() { @Override public void store(DataConfig config, IndexUpdateCallback callback, DataStoreParams initParamMap) { // Simulate storing documents Map<String, Object> doc1 = new HashMap<>(); doc1.put("id", "1"); doc1.put("title", "Document 1"); callback.store(initParamMap, doc1);Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Wed Jan 14 14:29:07 GMT 2026 - 13.2K bytes - Click Count (0) -
src/test/java/jcifs/SmbTreeTest.java
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 9.2K bytes - Click Count (0) -
src/test/java/jcifs/smb/DirFileEntryEnumIterator1Test.java
} @Test @DisplayName("Happy path: iterates entries, fetchMore(), then closes with FindClose2") void iteratesAndFetchesMoreThenCloses() throws Exception { // Arrange: program send() to simulate first, next, next(NO_MORE_FILES) List<String[]> batches = new ArrayList<>(); batches.add(new String[] { ".", "..", "a", "b" }); // first batch, dot entries filteredCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 12.7K bytes - Click Count (0) -
docs/en/docs/css/custom.css
} /* Right to left languages */ code { direction: ltr; display: inline-block; } .illustration { margin-top: 2em; margin-bottom: 2em; } /* Screenshots */ /* Simulate a browser window frame. Inspired by Termynal's CSS tricks with modifications */ .screenshot { display: block; background-color: #d3e0de; border-radius: 4px; padding: 45px 5px 5px;Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Mon Mar 23 13:56:46 GMT 2026 - 6.6K bytes - Click Count (0) -
src/test/java/jcifs/internal/CommonServerMessageBlockTest.java
when(messageBlock.getCommand()).thenReturn(command); when(messageBlock.getDigest()).thenReturn(digest); when(messageBlock.getResponse()).thenReturn(response); // When - simulate a typical usage sequence messageBlock.setMid(mid); messageBlock.setCommand(command); messageBlock.setUid(uid); messageBlock.setSessionId(sessionId);
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 15.7K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/suggest/SuggesterResourceLoadingTest.java
// Simulate an exception during processing if (is.available() > 0) { throw new RuntimeException("Simulated processing error"); } } fail("Should have thrown RuntimeException"); } catch (RuntimeException e) { assertEquals("Simulated processing error", e.getMessage());Created: Fri Apr 17 09:08:13 GMT 2026 - Last Modified: Mon Nov 24 03:40:05 GMT 2025 - 9.6K bytes - Click Count (0)