Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for testClose_Success (0.06 sec)

  1. src/test/java/jcifs/SmbFileHandleTest.java

            verify(smbFileHandle, times(1)).close(lastWriteTime);
        }
    
        /**
         * Test close() successfully.
         *
         * @throws CIFSException
         */
        @Test
        void testClose_success() throws CIFSException {
            smbFileHandle.close();
            verify(smbFileHandle, times(1)).close();
        }
    
        /**
         * Test close() when a CIFSException is thrown.
         *
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.1K bytes
    - Viewed (0)
  2. src/test/java/jcifs/dcerpc/DcerpcPipeHandleTest.java

            }
        }
    
        @Nested
        @DisplayName("Close Tests")
        class CloseTests {
    
            @Test
            @DisplayName("Should close handle and pipe successfully")
            void testClose_Success() throws Exception {
                DcerpcPipeHandle handle = createMockedDcerpcPipeHandle();
    
                // Mock parent close() to do nothing - explicitly mock the super.close() behavior
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 21K bytes
    - Viewed (0)
Back to top