- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 12 for isCancel (0.04 sec)
-
src/test/java/jcifs/internal/smb2/Smb2CancelRequestTest.java
} @Test @DisplayName("Test isCancel returns true") void testIsCancel() { // Given Smb2CancelRequest request = new Smb2CancelRequest(mockConfig, 1L, 0L); // When boolean isCancel = request.isCancel(); // Then assertTrue(isCancel, "Should identify itself as a cancel request"); } @Test
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/util/transport/RequestTest.java
void testIsCancelTrue() { // Test case for isCancel method when it returns true when(mockRequest.isCancel()).thenReturn(true); assertTrue(mockRequest.isCancel(), "isCancel should return true when mocked to do so."); verify(mockRequest, times(1)).isCancel(); } @Test void testIsCancelFalse() { // Test case for isCancel method when it returns false
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 3.6K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/ServerMessageBlock2Request.java
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/smb1/trans/nt/SmbComNtCancel.java
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 2.6K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/Smb2CancelRequest.java
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/trans/nt/SmbComNtCancelTest.java
constructor.setAccessible(true); cancel = constructor.newInstance(mockConfig, 1); } @Test @DisplayName("isCancel should return true") void testIsCancelReturnsTrue() { assertTrue(cancel.isCancel()); } @Test @DisplayName("writeParameterWordsWireFormat should return 0")
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 12.8K bytes - Viewed (0) -
src/main/java/jcifs/util/transport/Request.java
*/ void setRequestCredits(int credits); /** * Checks if this is a cancel request. * * @return whether this is a cancel request */ boolean isCancel(); /** * Gets the next request in the chain. * * @return chained request */ Request getNext(); /** * Gets the response for this request. *
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 1.7K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/ServerMessageBlock2RequestTest.java
assertSame(testRequest, result); } @Test @DisplayName("isCancel should always return false") void testIsCancel() { assertFalse(testRequest.isCancel()); } @Test @DisplayName("getCreditCost should return 1 by default") void testGetCreditCost() {
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
return 1; } @Override public void setRequestCredits(int credits) { this.requestCredits = credits; } @Override public boolean isCancel() { return false; } // Methods from Message interface @Override public void retainPayload() { this.retainPayload = 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/smb1/ServerMessageBlockTest.java
assertNull(testBlock.split()); assertNull(testBlock.createCancel()); assertNull(testBlock.getNextResponse()); assertFalse(testBlock.isCancel()); assertEquals(1, testBlock.getCreditCost()); assertEquals(1, testBlock.getGrantedCredits()); } @Test @DisplayName("Test prepare method")
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 36.2K bytes - Viewed (0)