Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 2 of 2 for testNullCause (0.05 seconds)

  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);
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 2.5K bytes
    - Click Count (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());
            });
    
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 10.2K bytes
    - Click Count (0)
Back to Top