- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 52 for getFree (0.03 sec)
-
src/test/java/jcifs/smb/SmbWatchHandleImplTest.java
// Prepare SMB2 flow with a given response private void setupSmb2(NotifyResponse resp, byte[] fileId) throws Exception { when(handle.isValid()).thenReturn(true); when(handle.getTree()).thenReturn(tree); when(tree.isSMB2()).thenReturn(true); when(tree.getConfig()).thenReturn(mock(Configuration.class)); when(handle.getFileId()).thenReturn(fileId);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.5K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbFileHandleImplTest.java
} @Test @DisplayName("getTree() acquires and returns same tree instance") void getTree_acquiresAndReturnsTree() { when(cfg.isTraceResourceUsage()).thenReturn(false); stubValidTree(7L, true, true); SmbFileHandleImpl h = new SmbFileHandleImpl(cfg, 123, tree, "//server/share", 0, 0, 0, 0, 0L); SmbTreeHandleImpl t1 = h.getTree(); SmbTreeHandleImpl t2 = h.getTree();
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.3K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbPipeHandleImplTest.java
when(fileHandle.acquire()).thenReturn(fileHandle); when(fileHandle.isValid()).thenReturn(true); when(fileHandle.getTree()).thenReturn(tree); // Initially not open (isStale returns false when handle is null, not true) assertFalse(target.isOpen()); assertFalse(target.isStale());
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.7K bytes - Viewed (0) -
src/main/java/jcifs/SmbFileHandle.java
* */ public interface SmbFileHandle extends AutoCloseable { /** * Returns the tree handle associated with this file handle * * @return the tree */ SmbTreeHandle getTree(); /** * Checks if this file handle is still valid * * @return whether the file descriptor is valid */ boolean isValid(); /**
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 2K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbTreeConnectionTest.java
when(shared.acquire(false)).thenReturn(shared); setTree(c1, shared); setTree(c2, shared); assertTrue(c1.isSame(c2)); SmbTreeImpl other = mock(SmbTreeImpl.class); when(other.acquire(false)).thenReturn(other); setTree(c2, other); assertFalse(c1.isSame(c2)); } @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 13K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbPipeHandleInternalTest.java
when(fh.acquire()).thenReturn(fh); lenient().when(fh.isValid()).thenReturn(true); lenient().when(fh.getTree()).thenReturn(tree); when(fh.getFileId()).thenReturn(new byte[16]); // Setup for ioctl request when(tree.send(any(Smb2IoctlRequest.class), eq(RequestParam.NO_RETRY))).thenReturn(ioctlResp);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 16.7K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbRandomAccessFileTest.java
when(file.openUnshared(anyInt(), anyInt(), anyInt(), anyInt(), anyInt())).thenReturn(fh); when(fh.acquire()).thenReturn(fh); when(fh.isValid()).thenReturn(true); when(fh.getTree()).thenReturn(tree); when(fh.getFileId()).thenReturn(new byte[16]); when(fh.getFid()).thenReturn(1); // build via package-private constructor to control unshared flag
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 18.1K bytes - Viewed (0) -
src/main/java/jcifs/smb/SmbFileHandleImpl.java
@Override public long getInitialSize() { return this.initialSize; } /** * {@inheritDoc} * * @see jcifs.SmbFileHandle#getTree() */ @Override public SmbTreeHandleImpl getTree() { return this.tree.acquire(); } /** * {@inheritDoc} * * @see jcifs.SmbFileHandle#isValid() */ @Override
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 9.4K bytes - Viewed (1) -
src/main/java/jcifs/smb/SmbRandomAccessFile.java
if (len <= 0) { return 0; } final long start = this.fp; try (SmbFileHandleImpl fh = ensureOpen(); SmbTreeHandleImpl th = fh.getTree()) { int r, n; final SmbComReadAndXResponse response = new SmbComReadAndXResponse(th.getConfig(), b, off); do { r = len > this.readSize ? this.readSize : len;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 18.8K bytes - Viewed (0) -
src/main/java/jcifs/smb/SmbWatchHandleImpl.java
if (!this.handle.isValid()) { throw new SmbException("Watch was broken by tree disconnect"); } try (SmbTreeHandleImpl th = this.handle.getTree()) { CommonServerMessageBlockRequest req; NotifyResponse resp = null; if (th.isSMB2()) {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 4.5K bytes - Viewed (0)