Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for getErrorCode (0.29 sec)

  1. src/test/java/jcifs/internal/CommonServerMessageBlockResponseTest.java

        }
    
        @Test
        @DisplayName("Test Response interface methods - getErrorCode")
        void testGetErrorCode() {
            // Given
            int expectedErrorCode = 0xC0000001;
            when(response.getErrorCode()).thenReturn(expectedErrorCode);
    
            // When
            int actualErrorCode = response.getErrorCode();
    
            // Then
            assertEquals(expectedErrorCode, actualErrorCode);
    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. src/test/java/jcifs/smb/SmbWatchHandleImplTest.java

            List<FileNotifyInformation> info = new ArrayList<>();
            NotifyResponse resp = mock(NotifyResponse.class);
            when(resp.isReceived()).thenReturn(true);
            when(resp.getErrorCode()).thenReturn(0);
            when(resp.getNotifyInformation()).thenReturn(info);
            setupSmb2(resp, new byte[16]);
            SmbWatchHandleImpl sut = new SmbWatchHandleImpl(handle, 0x1234, true);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.5K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb/SmbOperationExceptionTest.java

            original.withContext("attempt", 1);
    
            // When
            SmbOperationException retry = SmbOperationException.forRetry(original, 2);
    
            // Then
            assertEquals(original.getErrorCode(), retry.getErrorCode());
            assertEquals(original.getMessage(), retry.getMessage());
            assertEquals(original.getCause(), retry.getCause());
            assertNotNull(retry.getContext());
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 16.1K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb1/ServerMessageBlockTest.java

            }
    
            @Test
            @DisplayName("Test error code property")
            void testErrorCodeProperty() {
                testBlock.setErrorCode(0x12345678);
                assertEquals(0x12345678, testBlock.getErrorCode());
            }
    
            @Test
            @DisplayName("Test path property")
            void testPathProperty() {
                testBlock.setPath("\\new\\path");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 36.2K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb2/ServerMessageBlock2ResponseTest.java

            void testGetErrorCode() {
                int status = NtStatus.NT_STATUS_ACCESS_DENIED;
                response.setStatusForTest(status);
    
                assertEquals(status, response.getErrorCode());
            }
        }
    
        @Nested
        @DisplayName("Credit Tests")
        class CreditTests {
    
            @Test
            @DisplayName("Should return credit as granted credits")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 19.3K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb/SmbOperationException.java

            if (contextMap != null) {
                this.context.putAll(contextMap);
            }
            return this;
        }
    
        // Getters
        public ErrorCode getErrorCode() {
            return errorCode;
        }
    
        public ErrorCategory getErrorCategory() {
            return errorCode.getCategory();
        }
    
        public RetryPolicy getRetryPolicy() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 16.5K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/RequestTest.java

                this.received = false;
            }
    
            @Override
            public int getGrantedCredits() {
                return 1;
            }
    
            @Override
            public int getErrorCode() {
                return errorCode;
            }
    
            @Override
            public boolean verifySignature(byte[] buffer, int i, int size) {
                return true;
            }
    
            @Override
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.5K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/smb2/Smb2EchoResponseTest.java

            void testGetErrorCode() throws Exception {
                int status = NtStatus.NT_STATUS_ACCESS_DENIED;
                setStatus(echoResponse, status);
    
                assertEquals(status, echoResponse.getErrorCode());
            }
        }
    
        @Nested
        @DisplayName("Signed Flag Tests")
        class SignedFlagTests {
    
            @Test
            @DisplayName("Should detect signed flag")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.1K bytes
    - Viewed (0)
  9. src/test/java/jcifs/dcerpc/DcerpcMessageTest.java

                message.result = 123; // Example error code
                DcerpcException exception = message.getResult();
                assertNotNull(exception);
                assertEquals(123, exception.getErrorCode());
            }
        }
    
        @Nested
        @DisplayName("Header Encoding Tests")
        class HeaderEncodingTests {
    
            @Test
            @DisplayName("encode_header should write all header fields")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 18.3K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/NotifyResponseTest.java

                this.received = false;
            }
    
            @Override
            public int getGrantedCredits() {
                return this.grantedCredits;
            }
    
            @Override
            public int getErrorCode() {
                return this.errorCode;
            }
    
            @Override
            public boolean isVerifyFailed() {
                return this.verifyFailed;
            }
    
            @Override
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 21.2K bytes
    - Viewed (0)
Back to top