- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for isSameTree (0.05 sec)
-
src/test/java/jcifs/smb/SmbTreeHandleImplTest.java
verify(treeConnection).getConnectedShare(); } @Test @DisplayName("isSameTree: different types and delegated compare") void isSameTreeCoversBranches() { // Covers non-impl (false) and impl path delegating to connection comparison // Not an impl -> false assertFalse(handle.isSameTree(mock(SmbTreeHandle.class))); // Impl case delegates to treeConnection.isSame
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 14.4K bytes - Viewed (0) -
src/main/java/jcifs/smb/SmbTreeHandleImpl.java
return this.treeConnection.getConnectedShare(); } /** * * {@inheritDoc} * * @see jcifs.SmbTreeHandle#isSameTree(jcifs.SmbTreeHandle) */ @Override public boolean isSameTree(final SmbTreeHandle th) { if (!(th instanceof SmbTreeHandleImpl)) { return false; }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 11.1K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbCopyUtilTest.java
SmbTreeHandleImpl dh = mock(SmbTreeHandleImpl.class); when(sh.isSMB2()).thenReturn(true); when(dh.isSMB2()).thenReturn(true); when(sh.isSameTree(dh)).thenReturn(true); // Source open returns a handle that reports size 0 SmbFileHandleImpl sfd = mock(SmbFileHandleImpl.class); when(sfd.getInitialSize()).thenReturn(0L);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.1K bytes - Viewed (0) -
src/main/java/jcifs/smb/SmbCopyUtil.java
final SmbTreeHandleImpl sh, final SmbTreeHandleImpl dh) throws SmbException { if (sh.isSMB2() && dh.isSMB2() && sh.isSameTree(dh)) { try { serverSideCopy(src, dest, sh, dh, false); return; } catch (final SmbUnsupportedOperationException e) {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 16.6K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbFileTest.java
doReturn(true).when(smbFile).exists(); doReturn(false).when(dest).exists(); when(mockTreeHandle.isSMB2()).thenReturn(false); when(mockTreeHandle.isSameTree(mockTreeHandle)).thenReturn(true); when(mockTreeHandle.send(any(SmbComRename.class), any(SmbComBlankResponse.class))).thenReturn(mock(SmbComBlankResponse.class)); // Act
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 20.8K bytes - Viewed (0)