- Sort Score
- Result 10 results
- Languages All
Results 1 - 7 of 7 for isResponseAsync (0.13 sec)
-
src/test/java/jcifs/internal/CommonServerMessageBlockRequestTest.java
} @Test @DisplayName("Test isResponseAsync returns true when response is async") void testIsResponseAsyncTrue() { // Given when(request.isResponseAsync()).thenReturn(true); // When boolean result = request.isResponseAsync(); // Then assertTrue(result); verify(request, times(1)).isResponseAsync(); } @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/ServerMessageBlock2RequestTest.java
class AsyncOperationTests { @Test @DisplayName("isResponseAsync should return false when asyncId is 0") void testIsResponseAsyncFalse() { testRequest.setAsyncId(0); assertFalse(testRequest.isResponseAsync()); } @Test @DisplayName("isResponseAsync should return true when asyncId is not 0") void testIsResponseAsyncTrue() {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 15.7K bytes - Viewed (0) -
src/test/java/jcifs/internal/RequestTest.java
} @Test @DisplayName("Test Request methods inherited from CommonServerMessageBlockRequest") void testInheritedMethods() { // Given when(request.isResponseAsync()).thenReturn(true); when(request.getNext()).thenReturn(nextRequest); when(request.split()).thenReturn(nextRequest); when(request.allowChain(nextRequest)).thenReturn(true);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 14.5K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/Smb2CancelRequestTest.java
} @Test @DisplayName("Test isResponseAsync returns false") void testIsResponseAsync() { // Given Smb2CancelRequest request = new Smb2CancelRequest(mockConfig, 1L, 0L); // When boolean isAsync = request.isResponseAsync(); // Then assertFalse(isAsync, "Cancel requests should not expect async responses");
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.8K bytes - Viewed (0) -
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);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 20.3K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/ServerMessageBlockTest.java
void testDefaultRequestProperties() { assertEquals(0, testBlock.size()); assertFalse(testBlock.isAsync()); assertFalse(testBlock.isResponseAsync()); assertNull(testBlock.getNext()); assertFalse(testBlock.allowChain(mock(CommonServerMessageBlockRequest.class))); assertNull(testBlock.split());
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 36.2K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb1/ServerMessageBlock.java
public boolean isAsync() { return false; } /** * {@inheritDoc} * * @see jcifs.internal.CommonServerMessageBlockRequest#isResponseAsync() */ @Override public boolean isResponseAsync() { return false; } /** * {@inheritDoc} * * @see jcifs.internal.CommonServerMessageBlockRequest#getOverrideTimeout() */
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 38.9K bytes - Viewed (0)