Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for testCauseConstructor (0.59 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: 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(message, exception.getMessage(), "Message should match the provided string");
            assertNull(exception.getCause(), "Cause should be null for message-only constructor");
        }
    
        @Test
        void testCauseConstructor() {
            // Test the constructor with a cause argument
            Throwable cause = new RuntimeException("Root cause");
            RequestTimeoutException exception = new RequestTimeoutException(cause);
    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

            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: 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