- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 11 for createCancel (0.13 sec)
-
src/test/java/jcifs/internal/CommonServerMessageBlockRequestTest.java
verify(request, times(1)).createCancel(); } @Test @DisplayName("Test createCancel returns null when cancel not supported") void testCreateCancelReturnsNull() { // Given when(request.createCancel()).thenReturn(null); // When CommonServerMessageBlockRequest result = request.createCancel(); // Then assertNull(result);
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/smb1/trans/nt/SmbComNtTransactionTest.java
assertNotNull(notifyTransaction); } @Test @DisplayName("Test createCancel method returns SmbComNtCancel") void testCreateCancel() { // Set a MID for the transaction transaction.setMid(12345); // Create cancel request CommonServerMessageBlockRequest cancelRequest = transaction.createCancel(); // Verify it returns an SmbComNtCancel instance
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 18.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/RequestTest.java
when(request.getNext()).thenReturn(nextRequest); when(request.split()).thenReturn(nextRequest); when(request.allowChain(nextRequest)).thenReturn(true); when(request.createCancel()).thenReturn(nextRequest); when(request.size()).thenReturn(1024); when(request.getOverrideTimeout()).thenReturn(5000); // When & Then assertTrue(request.isResponseAsync());
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/main/java/jcifs/internal/smb2/ServerMessageBlock2Request.java
} /** * {@inheritDoc} * * @see jcifs.internal.CommonServerMessageBlockRequest#createCancel() */ @Override public CommonServerMessageBlockRequest createCancel() { return new Smb2CancelRequest(getConfig(), getMid(), getAsyncId()); } /** * {@inheritDoc} *
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Mon Aug 25 14:34:10 UTC 2025 - 7.2K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/Smb2CancelRequest.java
return null; } /** * {@inheritDoc} * * @see jcifs.internal.CommonServerMessageBlockRequest#createCancel() */ @Override public CommonServerMessageBlockRequest createCancel() { return null; } /** * {@inheritDoc} * * @see jcifs.util.transport.Request#setRequestCredits(int) */
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 4.5K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/Smb2CancelRequestTest.java
} @Test @DisplayName("Test createCancel returns null") void testCreateCancel() { // Given Smb2CancelRequest request = new Smb2CancelRequest(mockConfig, 1L, 0L); // When CommonServerMessageBlockRequest cancelRequest = request.createCancel(); // Then
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/main/java/jcifs/internal/CommonServerMessageBlockRequest.java
*/ int size(); /** * Creates a cancel request for this request. * * @return create cancel request */ CommonServerMessageBlockRequest createCancel(); /** * Checks if chaining is allowed with the next request. * * @param next the next request in the chain * @return whether to allow chaining */
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 2.4K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/ServerMessageBlock2RequestTest.java
@Test @DisplayName("createCancel should return Smb2CancelRequest with same mid and asyncId") void testCreateCancel() { long mid = 123L; long asyncId = 456L; testRequest.setMid(mid); testRequest.setAsyncId(asyncId); CommonServerMessageBlockRequest cancelRequest = testRequest.createCancel(); assertNotNull(cancelRequest);
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/main/java/jcifs/internal/smb1/trans/nt/SmbComNtTransaction.java
this.secondaryParameterOffset = NTT_SECONDARY_PARAMETER_OFFSET; } /** * * @return a cancel request */ @Override public CommonServerMessageBlockRequest createCancel() { return new SmbComNtCancel(getConfig(), (int) getMid()); } @Override protected int writeParameterWordsWireFormat(final byte[] dst, int dstIndex) { final int start = dstIndex;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 4.5K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/ServerMessageBlockTest.java
assertNull(testBlock.getNext()); assertFalse(testBlock.allowChain(mock(CommonServerMessageBlockRequest.class))); assertNull(testBlock.split()); assertNull(testBlock.createCancel()); assertNull(testBlock.getNextResponse()); assertFalse(testBlock.isCancel()); assertEquals(1, testBlock.getCreditCost()); assertEquals(1, testBlock.getGrantedCredits());
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 36.2K bytes - Viewed (0)