Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for testStringAndThrowableConstructor (2.28 sec)

  1. src/test/java/jcifs/util/transport/ConnectionTimeoutExceptionTest.java

                    "Message should be derived from the cause");
            assertEquals(cause, exception.getCause(), "Cause should match the provided throwable");
        }
    
        @Test
        void testStringAndThrowableConstructor() {
            // Test the constructor with both message and cause
            String message = "Failed to connect due to timeout.";
            Throwable cause = new IllegalStateException("Network unreachable");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 2K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb1/smb1/SmbExceptionTest.java

        }
    
        /**
         * Verify that the message + rootCause constructor stores the root.
         */
        @Test
        @DisplayName("Message + root cause stores root cause")
        void testStringAndThrowableConstructor() {
            Throwable root = mock(Throwable.class);
            SmbException ex = new SmbException("oops", root);
            assertSame(root, ex.getRootCause());
        }
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.5K bytes
    - Viewed (0)
Back to top