Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for doCloseInternal (1.03 sec)

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

                    return staticPages.get(pageIdx);
                }
                return new FileEntry[0];
            }
    
            @Override
            protected void doCloseInternal() throws CIFSException {
                if (throwOnCloseInternal)
                    throw new CIFSException("closeInternal fail");
            }
        }
    
        @Mock
        SmbTreeHandleImpl tree;
        @Mock
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.5K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb/DirFileEntryEnumIterator2Test.java

            // After last element, hasNext should be false and calling close() should send Smb2CloseRequest once
            assertFalse(it.hasNext(), "Iterator should be exhausted");
    
            // Close explicitly to exercise doCloseInternal
            it.close();
    
            // Verify interactions: one create, two additional directory queries (for fetchMore), one close
            verify(tree, times(1)).send(argThat((Request<?> r) -> r instanceof Smb2CreateRequest));
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.7K bytes
    - Viewed (0)
Back to top