Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 98 for getPaths (0.06 sec)

  1. src/test/java/jcifs/smb1/smb1/SmbFileFilterTest.java

                when(mockFile.getPath()).thenReturn("/share/dir/");
                RecordingFilter filter = new RecordingFilter();
                filter.accept(mockFile);
                // Verify the filter stored the reference
                // assertSame may not be necessary but demonstrates captured file
                // we simply check that getPath was called
                verify(mockFile, times(1)).getPath();
            }
        }
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3.2K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb/SmbFilenameFilterTest.java

            // Stub the getPath method to return a specific value
            when(mockDir.getPath()).thenReturn("/share/folder/");
    
            // Implementation uses dir.getPath() to check if file should be in that path
            SmbFilenameFilter filter = (dir, name) -> {
                if (dir == null)
                    return false;
                String path = dir.getPath();
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.3K bytes
    - Viewed (0)
  3. src/test/java/jcifs/DfsReferralDataTest.java

        void testGetPath() {
            // Given
            String path = "/test/path";
            when(mockReferralData.getPath()).thenReturn(path);
    
            // When
            String result = mockReferralData.getPath();
    
            // Then
            assertEquals(path, result);
            verify(mockReferralData).getPath();
        }
    
        @Test
        @DisplayName("Should get expiration")
        void testGetExpiration() {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.1K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/dfs/DfsReferralDataInternalTest.java

                // Test with mock
                when(mockReferralData.getPath()).thenReturn(path);
                assertEquals(path, mockReferralData.getPath());
                verify(mockReferralData, times(1)).getPath();
    
                // Test with concrete implementation
                String concretePath = concreteImplementation.getPath();
                // Should be path based on our initialization
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 28.2K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb/SmbResourceLocatorImpl.java

                return str.substring(0, i + 1);
            }
    
            return "smb://";
        }
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.SmbResourceLocator#getPath()
         */
    
        @Override
        public String getPath() {
            return this.url.toString();
        }
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.SmbResourceLocator#getCanonicalURL()
         */
        @Override
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 23.6K bytes
    - Viewed (0)
  6. src/main/java/jcifs/internal/smb2/persistent/PersistentHandleManager.java

                    StandardOpenOption.WRITE, StandardOpenOption.TRUNCATE_EXISTING))) {
                oos.writeObject(info);
                log.debug("Persisted handle: {}", info.getPath());
            } catch (IOException e) {
                log.error("Failed to persist handle: " + info.getPath(), e);
            }
        }
    
        private void removePersistedHandle(HandleInfo info) {
            if (info.getType() != HandleType.PERSISTENT) {
                return;
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 24 00:49:49 UTC 2025
    - 13K bytes
    - Viewed (0)
  7. src/main/java/jcifs/internal/dfs/DfsReferralDataImpl.java

                return false;
            }
            return Objects.equals(getServer(), other.getServer()) && Objects.equals(getShare(), other.getShare())
                    && Objects.equals(getPath(), other.getPath()) && Objects.equals(getPathConsumed(), other.getPathConsumed());
        }
    
        /**
         * Set the referral data from a referral response
         *
         * @param ref the referral response
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 11.7K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/dfs/DfsReferralDataImplTest.java

                assertEquals("path2", combined.getPath());
                assertEquals("DOMAIN", combined.getDomain());
                assertEquals(second.getExpiration(), combined.getExpiration());
    
                // Path consumed should be combined
                int expectedPathConsumed = 20 + 15;
                if (first.getPath() != null) {
                    expectedPathConsumed -= (first.getPath().length() + 1);
                }
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 30.6K bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb/SmbFileDirectoryLeasingExtension.java

                if (dirManager == null) {
                    log.debug("Directory leasing not available for: {}", smbFile.getPath());
                    return null;
                }
    
                return dirManager.requestDirectoryLease(smbFile.getPath(), requestedState, scope);
            } catch (CIFSException e) {
                throw SmbException.wrap(e);
            }
        }
    
        /**
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 23 02:21:31 UTC 2025
    - 7.1K bytes
    - Viewed (0)
  10. src/main/java/jcifs/internal/smb2/lease/LeaseManager.java

                        // Flush any cached data before eviction
                        if (lease.hasWriteCache()) {
                            flushCachedWrites(lease.getPath());
                        }
                        if (lease.hasReadCache()) {
                            invalidateReadCache(lease.getPath());
                        }
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 18.8K bytes
    - Viewed (0)
Back to top