Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for AsyncRequest (0.05 sec)

  1. src/test/java/jcifs/internal/CommonServerMessageBlockResponseTest.java

            CommonServerMessageBlockRequest asyncRequest = mock(CommonServerMessageBlockRequest.class);
    
            when(asyncRequest.isResponseAsync()).thenReturn(true);
            when(regularRequest.isResponseAsync()).thenReturn(false);
    
            doNothing().when(response).prepare(any());
    
            // When
            response.prepare(regularRequest);
            response.prepare(asyncRequest);
            response.prepare(null);
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.3K bytes
    - Viewed (0)
  2. okhttp/src/jvmTest/kotlin/okhttp3/internal/http2/HttpOverHttp2Test.kt

        server.enqueue(MockResponse(body = "A"))
        val executor = Executors.newCachedThreadPool(threadFactory("HttpOverHttp2Test"))
        val countDownLatch = CountDownLatch(2)
        executor.execute(AsyncRequest("/r1", countDownLatch))
        executor.execute(AsyncRequest("/r2", countDownLatch))
        countDownLatch.await()
        assertThat(server.takeRequest().exchangeIndex).isEqualTo(0)
        assertThat(server.takeRequest().exchangeIndex).isEqualTo(1)
      }
    
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Sat Nov 01 12:18:11 UTC 2025
    - 67.4K bytes
    - Viewed (0)
Back to top