Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for testGetErrorCode (0.69 sec)

  1. src/test/java/jcifs/dcerpc/DcerpcExceptionTest.java

            assertEquals(cause, exception.getRootCause(), "getRootCause() should return the same cause as getCause().");
        }
    
        /**
         * Test getErrorCode() method.
         */
        @Test
        void testGetErrorCode() {
            int errorCode = 0x00000005; // DCERPC_FAULT_ACCESS_DENIED
            DcerpcException exception = new DcerpcException(errorCode);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.8K bytes
    - Viewed (0)
  2. src/test/java/jcifs/util/transport/ResponseTest.java

            assertEquals(100, mockResponse.getGrantedCredits());
    
            // Verify the method was called
            verify(mockResponse, times(1)).getGrantedCredits();
        }
    
        @Test
        void testGetErrorCode() {
            // Simulate error code
            when(mockResponse.getErrorCode()).thenReturn(-1);
            assertEquals(-1, mockResponse.getErrorCode());
    
            // Verify the method was called
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 6.5K bytes
    - Viewed (0)
Back to top