Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for testMessageAndCauseConstructor (1.88 sec)

  1. 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);
    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/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");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 2.4K bytes
    - Viewed (0)
  3. 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");
    
            // When
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.1K bytes
    - Viewed (0)
Back to top