- Sort Score
- Num 10 results
- Language All
Results 1 - 2 of 2 for testStringAndThrowableConstructor (0.32 seconds)
-
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");
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 2K bytes - Click Count (0) -
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()); } /**Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 4.5K bytes - Click Count (0)