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: Sun Sep 07 00:10:21 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 Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Jun 20 11:46:46 UTC 2025
    - 73.4K bytes
    - Viewed (0)
Back to top