Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 1 of 1 for isSMB2Cases (0.05 seconds)

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

            verify(session, times(4)).close();
            verify(transport, times(4)).close();
        }
    
        @Test
        @DisplayName("isSMB2 true and exception fallback to false")
        void isSMB2Cases() throws Exception {
            // Happy path returns true; transport exception path returns false
            when(transport.isSMB2()).thenReturn(true);
            assertTrue(handle.isSMB2());
    
            reset(transport);
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 14.4K bytes
    - Click Count (0)
Back to Top