- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 1,470 for tree (0.02 sec)
-
src/test/java/jcifs/smb1/smb1/SmbTreeTest.java
SmbTree tree4 = new SmbTree(session, "testShare", "otherService"); // Test equal trees (same share and service) assertEquals(tree1, tree2); // Test non-equal trees (different share) assertNotEquals(tree1, tree3); // Test non-equal trees (different service) assertNotEquals(tree1, tree4); // Test with different object type assertNotEquals(tree1, new Object());
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 10.2K bytes - Viewed (0) -
src/main/java/jcifs/SmbTreeHandle.java
/** * Gets the name of the share this tree is connected to * @return the share we are connected to */ String getConnectedShare(); /** * Checks if this tree handle refers to the same tree as another * @param th the tree handle to compare with * @return whether the handles refer to the same tree */ boolean isSameTree(SmbTreeHandle th); /**
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 2.6K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbTreeImplTest.java
assertEquals(tree1, tree2); assertFalse(tree1.equals(tree3)); } // Test case for the unwrap method @Test void testUnwrap() { SmbTreeImpl tree = new SmbTreeImpl(session, "SHARE", "A:"); SmbTreeImpl unwrapped = tree.unwrap(SmbTreeImpl.class); assertEquals(tree, unwrapped); // Test unwrapping to a non-assignable type should fail
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 7.8K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbFileHandleImplTest.java
SmbTreeHandleImpl t2 = h.getTree(); assertSame(tree, t1, "Expected same mocked tree"); assertSame(tree, t2, "Expected same mocked tree"); // acquire is called once in ctor + once per getTree() call verify(tree, times(3)).acquire(); } @Test @DisplayName("isValid() true when open, same tree id, connected") void isValid_true_whenOpenSameTreeConnected() {
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/SmbWatchHandleImplTest.java
SmbFileHandleImpl handle; @Mock SmbTreeHandleImpl tree; // 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));
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/main/java/jcifs/internal/TreeConnectResponse.java
* License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ package jcifs.internal; /** * Interface for SMB Tree Connect response messages. * Handles the server's response to a tree connect request, providing tree ID, * service type, and DFS information for the connected share. * * @author mbechler */
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 1.8K bytes - Viewed (0) -
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/smb/SmbTreeInternalTest.java
void unwrap_and_close_interactions() { // Arrange when(tree.unwrap(SmbTreeInternal.class)).thenReturn(tree); // Act SmbTree unwrapped = tree.unwrap(SmbTreeInternal.class); tree.close(); // Assert assertNotNull(unwrapped); verify(tree).unwrap(SmbTreeInternal.class); verify(tree).close(); }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.6K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbPipeHandleImplTest.java
} @Test @DisplayName("close() calls handle.close when open and handle.release otherwise; releases tree") void testCloseBehavior() throws CIFSException { when(pipe.ensureTreeConnected()).thenReturn(tree); when(tree.acquire()).thenReturn(tree); when(tree.isSMB2()).thenReturn(true); when(pipe.openUnshared(anyString(), anyInt(), anyInt(), anyInt(), anyInt(), anyInt())).thenReturn(fileHandle);
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/SmbPipeInputStreamTest.java
SmbPipeInputStream stream = newStreamWithMinimalStubs(true); 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)