Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for close_invalidHandle_doesNothing (0.14 sec)

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

            verify(handle, times(1)).close(0L);
        }
    
        // close() should do nothing when handle is invalid
        @Test
        @DisplayName("close() does nothing when handle invalid")
        void close_invalidHandle_doesNothing() throws Exception {
            when(handle.isValid()).thenReturn(false);
            SmbWatchHandleImpl sut = new SmbWatchHandleImpl(handle, 0, false);
    
            sut.close();
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.5K bytes
    - Viewed (0)
Back to top