Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for testNullCause (0.73 sec)

  1. src/test/java/jcifs/CIFSExceptionTest.java

                CIFSException exception = new CIFSException((String) null);
                assertNotNull(exception);
            });
        }
    
        @Test
        @DisplayName("Should handle null cause")
        void testNullCause() {
            // When/Then
            assertDoesNotThrow(() -> {
                CIFSException exception = new CIFSException("Message", null);
                assertNotNull(exception);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 2.5K bytes
    - Viewed (0)
  2. src/test/java/jcifs/RuntimeCIFSExceptionTest.java

                assertNull(exception.getMessage());
            });
        }
    
        @Test
        @DisplayName("Should handle null cause gracefully")
        void testNullCause() {
            // When/Then
            assertDoesNotThrow(() -> {
                RuntimeCIFSException exception = new RuntimeCIFSException((Throwable) null);
                assertNull(exception.getCause());
            });
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.2K bytes
    - Viewed (0)
Back to top