- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 98 for getPaths (1.4 sec)
-
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) -
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) -
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) -
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 initializationRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 28.2K bytes - Viewed (0) -
src/main/java/jcifs/smb/SmbResourceLocatorImpl.java
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 23.6K bytes - Viewed (0) -
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) -
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 responseRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 11.7K bytes - Viewed (0) -
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) -
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) -
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)