Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for isCancel (0.07 sec)

  1. 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)
  2. 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)
  3. src/main/java/jcifs/internal/smb2/ServerMessageBlock2Request.java

            return (ServerMessageBlock2Request<?>) super.getNext();
        }
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.util.transport.Request#isCancel()
         */
        @Override
        public boolean isCancel() {
            return false;
        }
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.internal.CommonServerMessageBlockRequest#isResponseAsync()
         */
        @Override
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Mon Aug 25 14:34:10 UTC 2025
    - 7.2K bytes
    - Viewed (0)
  4. src/main/java/jcifs/internal/smb1/trans/nt/SmbComNtCancel.java

            super(config, SMB_COM_NT_CANCEL);
            setMid(mid);
        }
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.internal.smb1.ServerMessageBlock#isCancel()
         */
        @Override
        public boolean isCancel() {
            return true;
        }
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.internal.smb1.ServerMessageBlock#writeParameterWordsWireFormat(byte[], int)
         */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2.6K bytes
    - Viewed (0)
  5. src/main/java/jcifs/internal/smb2/Smb2CancelRequest.java

         */
        @Override
        public void setTid(final int t) {
            setTreeId(t);
        }
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.util.transport.Request#isCancel()
         */
        @Override
        public boolean isCancel() {
            return true;
        }
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.internal.CommonServerMessageBlockRequest#size()
         */
        @Override
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 4.5K bytes
    - Viewed (0)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. 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)
Back to top