Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for testStringConstructor (0.58 sec)

  1. src/test/java/jcifs/util/transport/ConnectionTimeoutExceptionTest.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 testStringConstructor() {
            // Test the constructor with a message
            String message = "Connection timed out.";
            ConnectionTimeoutException exception = new ConnectionTimeoutException(message);
    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/smb1/smb1/SmbExceptionTest.java

        }
    
        /**
         * Verify that the string-ctor sets status to {@code NT_STATUS_UNSUCCESSFUL}.
         */
        @Test
        @DisplayName("String constructor sets NT_STATUS_UNSUCCESSFUL status")
        void testStringConstructor() {
            SmbException ex = new SmbException("custom message");
            assertEquals("custom message", ex.getMessage());
            assertEquals(NtStatus.NT_STATUS_UNSUCCESSFUL, ex.getNtStatus());
        }
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.5K bytes
    - Viewed (0)
Back to top