Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 38 for SmbResource (0.06 sec)

  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");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 15.1K bytes
    - Viewed (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
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.9K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb/NetServerEnumIteratorTest.java

    import org.mockito.junit.jupiter.MockitoSettings;
    import org.mockito.quality.Strictness;
    
    import jcifs.CIFSException;
    import jcifs.Configuration;
    import jcifs.ResourceNameFilter;
    import jcifs.SmbConstants;
    import jcifs.SmbResource;
    import jcifs.SmbResourceLocator;
    
    /**
     * Unit tests for NetServerEnumIterator.
     * Tests focus on constructor validation and basic iterator contract.
     */
    @ExtendWith(MockitoExtension.class)
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.8K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb/SmbEnumerationUtilTest.java

                Object wrapper = newPrivateInner("ResourceFilterWrapper", new Class<?>[] { SmbFileFilter.class }, delegate);
    
                SmbResource notAFile = mock(SmbResource.class);
    
                // Act
                boolean result = (boolean) invokePrivate(wrapper, "accept", new Class<?>[] { SmbResource.class }, notAFile);
    
                // Assert
                assertFalse(result);
                verify(delegate, never()).accept(any());
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.1K bytes
    - Viewed (0)
  5. 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
        }
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 1.8K bytes
    - Viewed (0)
  6. src/main/java/jcifs/SmbConstants.java

        /**
         * Returned by {@link jcifs.SmbResource#getType()} if the resource this <code>SmbFile</code>
         * represents is a server.
         */
        int TYPE_SERVER = 0x04;
        /**
         * Returned by {@link jcifs.SmbResource#getType()} if the resource this <code>SmbFile</code>
         * represents is a share.
         */
        int TYPE_SHARE = 0x08;
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 24 00:49:49 UTC 2025
    - 12.8K bytes
    - Viewed (0)
  7. 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) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.5K bytes
    - Viewed (0)
  8. 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
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.8K bytes
    - Viewed (0)
  9. 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
     */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 7.7K bytes
    - Viewed (0)
  10. src/test/java/jcifs/context/CIFSContextWrapperTest.java

    import jcifs.CIFSException;
    import jcifs.Configuration;
    import jcifs.Credentials;
    import jcifs.DfsResolver;
    import jcifs.NameServiceClient;
    import jcifs.SidResolver;
    import jcifs.SmbPipeResource;
    import jcifs.SmbResource;
    import jcifs.SmbTransportPool;
    import jcifs.smb.Handler;
    import jcifs.smb.SmbFile;
    import jcifs.smb.SmbNamedPipe;
    
    class CIFSContextWrapperTest {
    
        private CIFSContext mockDelegate;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.7K bytes
    - Viewed (0)
Back to top