Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for testGetNameWithNull (0.32 sec)

  1. src/test/java/jcifs/internal/smb2/create/CreateContextResponseTest.java

                verify(response, times(1)).getName();
            }
    
            @Test
            @DisplayName("getName() should handle null return value")
            void testGetNameWithNull() {
                CreateContextResponse response = mock(CreateContextResponse.class);
                when(response.getName()).thenReturn(null);
    
                byte[] actualName = response.getName();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 16.2K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb2/create/CreateContextRequestTest.java

                assertArrayEquals(expectedName, actualName);
                verify(request, times(1)).getName();
            }
    
            @Test
            @DisplayName("getName() should handle null return value")
            void testGetNameWithNull() {
                CreateContextRequest request = mock(CreateContextRequest.class);
                when(request.getName()).thenReturn(null);
    
                byte[] actualName = request.getName();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 24.9K bytes
    - Viewed (0)
Back to top