Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for testNullContext (0.69 sec)

  1. src/test/java/jcifs/smb/SmbOperationExceptionTest.java

            assertTrue(str.contains("context="));
            assertTrue(str.contains("elapsed="));
        }
    
        @Test
        @DisplayName("Should handle context with null values")
        void testNullContext() {
            // When
            exception = new SmbOperationException(SmbOperationException.ErrorCode.UNKNOWN_ERROR, "Something went wrong", null, null, null);
    
            // Then
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 16.1K bytes
    - Viewed (0)
  2. src/test/java/jcifs/SmbTransportPoolTest.java

            }
        }
    
        @Nested
        @DisplayName("Edge Cases and Error Handling")
        class EdgeCasesTests {
    
            @Test
            @DisplayName("Should handle null context")
            void testNullContext() {
                // Given
                when(transportPool.getSmbTransport(null, address, DEFAULT_PORT, false)).thenReturn(null);
    
                // When
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 22.6K bytes
    - Viewed (0)
Back to top