Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for testMessageAndCauseConstructor (2.26 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: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 2K bytes
    - Viewed (0)
  2. 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: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.1K bytes
    - Viewed (0)
Back to top