- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 45 for getTree (0.8 sec)
-
src/main/java/jcifs/smb/SmbTreeConnection.java
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 30.4K bytes - Viewed (0) -
src/test/java/jcifs/SmbFileHandleTest.java
} /** * Test that getTree() returns the correct SmbTreeHandle. */ @Test void testGetTree() { when(smbFileHandle.getTree()).thenReturn(smbTreeHandle); SmbTreeHandle result = smbFileHandle.getTree(); assertEquals(smbTreeHandle, result, "getTree should return the mocked SmbTreeHandle."); verify(smbFileHandle, times(1)).getTree(); } /**
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.1K bytes - Viewed (0) -
compat/maven-compat/src/main/java/org/apache/maven/repository/metadata/MetadataResolutionResult.java
} else if (requestType.equals(MetadataResolutionRequestTypeEnum.versionedGraph)) { return new MetadataGraph(getTree(), true, false); } else if (requestType.equals(MetadataResolutionRequestTypeEnum.scopedGraph)) { return new MetadataGraph(getTree(), true, true); } return null; } // ----------------------------------------------------------------------------
Registered: Sun Sep 07 03:35:12 UTC 2025 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 5.4K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbPipeInputStreamTest.java
SmbPipeInputStream stream = newStreamWithMinimalStubs(true); // Arrange mocks for available() when(handle.ensureOpen()).thenReturn(fd); when(fd.getTree()).thenReturn(tree); when(tree.isSMB2()).thenReturn(true); when(tree.getConfig()).thenReturn(config); when(config.getTransactionBufferSize()).thenReturn(65535);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.9K bytes - Viewed (0) -
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/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/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/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)