Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for testClose_idempotency (0.28 sec)

  1. src/test/java/jcifs/SmbTreeTest.java

        }
    
        /**
         * Test for close() idempotency.
         * Verifies that calling close multiple times has the same effect as calling it once.
         */
        @Test
        void testClose_idempotency() {
            // Mock a tree that tracks close state
            SmbTree idempotentTree = mock(SmbTree.class);
            doNothing().when(idempotentTree).close();
    
            // Close multiple times
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.2K bytes
    - Viewed (0)
Back to top