Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for testToStringWithoutRootCause (0.91 sec)

  1. src/test/java/jcifs/smb1/smb1/SmbExceptionTest.java

         * {@code IOException#toString()}.
         */
        @Test
        @DisplayName("toString without root cause matches IOException#toString")
        void testToStringWithoutRootCause() {
            SmbException ex = new SmbException(0, false);
            assertEquals("jcifs.smb1.smb1.SmbException: NT_STATUS_SUCCESS", ex.toString());
        }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.5K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb1/util/transport/TransportExceptionTest.java

            }
        }
    
        @Nested
        @DisplayName("ToString Tests")
        class ToStringTests {
    
            @Test
            @DisplayName("Should return simple string when no root cause")
            void testToStringWithoutRootCause() {
                String message = "Test exception message";
                TransportException exception = new TransportException(message);
    
                String result = exception.toString();
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.5K bytes
    - Viewed (0)
Back to top