Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 11 - 20 of 38 for SmbResource (0.09 seconds)

  1. src/test/java/jcifs/context/BaseContextTest.java

            verify(configWithCreds).getDefaultPassword();
            verify(configWithCreds).getDefaultDomain();
        }
    
        @Test
        @DisplayName("get method should create SmbResource from URL")
        void testGetSmbResource() throws CIFSException {
            // When
            SmbResource resource = context.get("smb://server/share/file.txt");
    
            // Then
            assertNotNull(resource, "Should create SMB resource");
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 07:14:38 GMT 2025
    - 15.1K bytes
    - Click Count (0)
  2. src/test/java/jcifs/smb/NetServerFileEntryAdapterIteratorTest.java

            when(filter.accept(any(SmbResource.class))).thenReturn(false, true);
    
            NetServerFileEntryAdapterIterator itr = new NetServerFileEntryAdapterIterator(parent, delegate, filter);
    
            // Act
            assertTrue(itr.hasNext());
            SmbResource r = itr.next();
    
            // Assert: filter was invoked twice and we got the accepted one
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 7.9K bytes
    - Click Count (0)
  3. src/main/java/jcifs/EmptyIterator.java

     * An empty iterator implementation for SMB resources.
     * This iterator contains no elements and immediately returns false for hasNext().
     *
     * @author mbechler
     */
    public class EmptyIterator implements CloseableIterator<SmbResource> {
    
        /**
         * Default constructor for EmptyIterator.
         * Creates an empty iterator with no elements.
         */
        public EmptyIterator() {
            // Default constructor
        }
    
        /**
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 1.8K bytes
    - Click Count (0)
  4. src/test/java/jcifs/CloseableIteratorTest.java

    /**
     * Test class for CloseableIterator interface functionality
     */
    @DisplayName("CloseableIterator Tests")
    class CloseableIteratorTest extends BaseTest {
    
        @Mock
        private CloseableIterator<SmbResource> mockIterator;
    
        @Test
        @DisplayName("Should define close method")
        void testCloseMethod() throws CIFSException {
            // When
            mockIterator.close();
    
            // Then
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 964 bytes
    - Click Count (0)
  5. src/main/java/jcifs/ResourceNameFilter.java

         * @param name the resource name to test
         * @return whether the given filename should be included
         * @throws CIFSException if an error occurs while accessing the resource
         */
        boolean accept(SmbResource parent, String name) throws CIFSException;
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 1.3K bytes
    - Click Count (0)
  6. src/main/java/jcifs/smb/SmbFile.java

        }
    
        /**
         * List the contents of this SMB resource as an array of
         * <code>SmbResource</code> objects. This method is much more efficient than
         * the regular <code>list</code> method when querying attributes of each
         * file in the result set.
         * <p>
         * The list of <code>SmbResource</code>s returned by this method will be;
         *
         * <ul>
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 103.2K bytes
    - Click Count (0)
  7. src/test/java/jcifs/CIFSContextTest.java

            });
        }
    
        @Test
        @DisplayName("Should get SmbResource")
        void testGet() throws CIFSException {
            // Given
            String url = "smb://server/share/file";
            SmbResource mockResource = mock(SmbResource.class);
            when(mockContext.get(url)).thenReturn(mockResource);
    
            // When
            SmbResource resource = mockContext.get(url);
    
            // Then
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 8.8K bytes
    - Click Count (0)
  8. src/main/java/jcifs/smb/DirFileEntryEnumIteratorBase.java

     */
    package jcifs.smb;
    
    import org.slf4j.Logger;
    import org.slf4j.LoggerFactory;
    
    import jcifs.CIFSException;
    import jcifs.CloseableIterator;
    import jcifs.ResourceNameFilter;
    import jcifs.SmbResource;
    
    /**
     * Base class for directory enumeration iterators.
     *
     * This abstract class provides common functionality for iterating
     * over directory entries in SMB file shares.
     *
     * @author mbechler
     */
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 7.7K bytes
    - Click Count (0)
  9. src/test/java/jcifs/smb/DirFileEntryEnumIteratorBaseTest.java

    import org.mockito.ArgumentCaptor;
    import org.mockito.Mock;
    import org.mockito.junit.jupiter.MockitoExtension;
    
    import jcifs.CIFSException;
    import jcifs.ResourceNameFilter;
    import jcifs.SmbResource;
    
    @ExtendWith(MockitoExtension.class)
    class DirFileEntryEnumIteratorBaseTest {
    
        // Simple FileEntry implementation used for tests
        private static FileEntry entry(String name) {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 14.5K bytes
    - Click Count (0)
  10. src/main/java/jcifs/ResourceFilter.java

         *
         * @param resource the SMB resource to test
         * @return whether the given resource should be included
         * @throws CIFSException if an error occurs while accessing the resource
         */
        boolean accept(SmbResource resource) throws CIFSException;
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 1.2K bytes
    - Click Count (0)
Back to Top