Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for testMessageConstructor (2.86 sec)

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

            // Expect null message and null cause
            assertNull(e.getMessage());
            assertNull(e.getCause());
        }
    
        /**
         * Test the constructor with a message.
         */
        @Test
        void testMessageConstructor() {
            String errorMessage = "This is a test error message.";
            PACDecodingException e = new PACDecodingException(errorMessage);
            // Expect the message to be set correctly and cause to be null
    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

            assertNull(exception.getMessage(), "Message should be null for no-arg constructor");
            assertNull(exception.getCause(), "Cause should be null for no-arg constructor");
        }
    
        @Test
        void testMessageConstructor() {
            // Test the constructor with a message argument
            String message = "Test message";
            RequestTimeoutException exception = new RequestTimeoutException(message);
    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

            assertTrue(exception instanceof RuntimeException, "Should be a RuntimeException");
        }
    
        @Test
        @DisplayName("Message constructor should create exception with specified message")
        void testMessageConstructor() {
            // Given & When
            CIFSUnsupportedCryptoException exception = new CIFSUnsupportedCryptoException(CRYPTO_ERROR_MESSAGE);
    
            // Then
    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