Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for testStringConstructor (0.07 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)
  3. src/test/java/jcifs/SIDTest.java

        /**
         * Test constructor with a valid SID string.
         *
         * @throws SmbException if the SID string is invalid
         */
        @Test
        void testStringConstructor() throws SmbException {
            SID sid = new SID(adminSidString);
            assertEquals(1, sid.revision);
            assertEquals(2, sid.sub_authority_count);
            assertEquals(5, sid.identifier_authority[5]);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.5K bytes
    - Viewed (0)
Back to top