Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for testCauseConstructor (2.05 sec)

  1. src/test/java/jcifs/pac/PACDecodingExceptionTest.java

            assertEquals(errorMessage, e.getMessage());
            assertNull(e.getCause());
        }
    
        /**
         * Test the constructor with a cause.
         */
        @Test
        void testCauseConstructor() {
            Throwable cause = new RuntimeException("Root cause");
            PACDecodingException e = new PACDecodingException(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

            assertNull(exception.getCause(), "Cause should be null");
        }
    
        @Test
        @DisplayName("Cause constructor should create exception with cryptographic cause")
        void testCauseConstructor() {
            // Given
            NoSuchAlgorithmException cause = new NoSuchAlgorithmException("AES-GCM algorithm not available");
    
            // 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