- Sort Score
- Result 10 results
- Languages All
Results 1 - 6 of 6 for simulate (0.03 sec)
-
src/test/java/org/codelibs/fess/mylasta/direction/sponsor/FessCurtainFinallyHookTest.java
// Create a hook that simulates an exception scenario AtomicBoolean exceptionHandled = new AtomicBoolean(false); FessCurtainFinallyHook customHook = new FessCurtainFinallyHook() { @Override public void hook(final FwAssistantDirector assistantDirector) { try { // Simulate a scenario where the method exists but invocation fails
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 8.7K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/job/UpdateLabelJobTest.java
} // Test handling of processing exception public void test_execute_withProcessingException() { // Create a mock that returns 0 to simulate processing error SearchEngineClient errorClient = new SearchEngineClient() { @Override public long updateByQuery(String index,
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 9.4K bytes - Viewed (0) -
mockwebserver/README.md
```kotlin val response = MockResponse.Builder() .addHeader("Content-Type", "application/json; charset=utf-8") .addHeader("Cache-Control", "no-cache") .body("{}") .build() ``` MockResponse can be used to simulate a slow network. This is useful for testing timeouts and interactive testing. ### Java ```java MockResponse response = new MockResponse.Builder() .throttleBody(1024, 1, TimeUnit.SECONDS) .build();
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Sat Jul 19 13:40:52 UTC 2025 - 8.1K bytes - Viewed (0) -
android/guava/src/com/google/common/util/concurrent/JdkFutureAdapters.java
* Assigns a thread to the given {@link Future} to provide {@link ListenableFuture} functionality. * * <p><b>Warning:</b> If the input future does not already implement {@code ListenableFuture}, the * returned future will emulate {@link ListenableFuture#addListener} by taking a thread from an * internal, unbounded pool at the first call to {@code addListener} and holding it until the * future is {@linkplain Future#isDone() done}. *
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Jul 17 15:26:41 UTC 2025 - 7.5K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/internal/connection/RetryConnectionTest.kt
class RetryConnectionTest { private val factory = TestValueFactory() private val handshakeCertificates = localhost() private val retryableException = SSLHandshakeException("Simulated handshake exception") @RegisterExtension val clientTestRule = OkHttpClientTestRule() private var client = clientTestRule.newClient() @AfterEach internal fun tearDown() { factory.close() }
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 4.3K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/ComparisonChainTest.java
.add("anEnum", anEnum) .toString(); } } /** Validates that the Comparator equivalent we document is correct. */ @J2ktIncompatible // TODO b/315311435 - J2kt cannot emulate Comparator<C>.<U>thenComparing() public void testComparatorEquivalent() { Comparator<Foo> comparatorUsingComparisonChain = (a, b) -> ComparisonChain.start()
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Wed Feb 12 03:05:13 UTC 2025 - 7.6K bytes - Viewed (0)