- Sort Score
- Num 10 results
- Language All
Results 1 - 3 of 3 for testMessageAndCauseConstructor (0.18 seconds)
-
src/test/java/jcifs/pac/PACDecodingExceptionTest.java
assertNull(e.getMessage()); assertSame(cause, e.getCause()); } /** * Test the constructor with both a message and a cause. */ @Test void testMessageAndCauseConstructor() { String errorMessage = "This is a test error message."; Throwable cause = new RuntimeException("Root cause"); PACDecodingException e = new PACDecodingException(errorMessage, cause);
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/util/transport/RequestTimeoutExceptionTest.java
assertEquals(cause, exception.getCause(), "Cause should match the provided throwable"); } @Test void testMessageAndCauseConstructor() { // Test the constructor with both message and cause arguments String message = "Test message with cause"; Throwable cause = new IllegalArgumentException("Invalid argument");
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 2.4K bytes - Click Count (0) -
src/test/java/jcifs/CIFSUnsupportedCryptoExceptionTest.java
} @Test @DisplayName("Message and cause constructor should preserve both crypto parameters") void testMessageAndCauseConstructor() { // Given NoSuchAlgorithmException cause = new NoSuchAlgorithmException("Algorithm not found"); // WhenCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 4.1K bytes - Click Count (0)