Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for testGetRootCause (0.08 sec)

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

            assertEquals(errorCode, exception.getErrorCode(), "getErrorCode() should return the correct error code.");
        }
    
        /**
         * Test getRootCause() method (deprecated).
         */
        @Test
        void testGetRootCause() {
            Throwable cause = new IllegalArgumentException("Invalid argument.");
            DcerpcException exception = new DcerpcException("Error with cause.", cause);
    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/TransportExceptionTest.java

            assertNull(bothNullException.getCause());
        }
    
        @Test
        @DisplayName("Test deprecated getRootCause method returns the same as getCause")
        @SuppressWarnings("deprecation")
        public void testGetRootCause() {
            // Test with no cause
            TransportException noCauseException = new TransportException("No cause");
            assertNull(noCauseException.getRootCause());
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.4K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb1/util/transport/TransportExceptionTest.java

            }
        }
    
        @Nested
        @DisplayName("GetRootCause Tests")
        class GetRootCauseTests {
    
            @Test
            @DisplayName("Should return root cause when set")
            void testGetRootCause() {
                Exception rootCause = new IllegalStateException("Test root cause");
                TransportException exception = new TransportException("Message", rootCause);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.5K bytes
    - Viewed (0)
Back to top