- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 55 for trees (0.72 sec)
-
src/test/java/jcifs/smb/SimpleMemoryManagementTest.java
// Session starts with usage count > 0 assertTrue(session.isInUse(), "Session should be in use initially"); // Create and release trees SmbTreeImpl tree = session.getSmbTree("share1", null); assertNotNull(tree, "Tree should be created"); tree.release(); // Release the session (back to initial state) session.release();
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 5.7K bytes - Viewed (0) -
src/test/java/jcifs/SmbTreeTest.java
CustomSmbTree inner = middle.unwrap(CustomSmbTree.class); assertNotNull(middle, "Middle tree should not be null"); assertNotNull(inner, "Inner tree should not be null"); assertSame(middleTree, middle, "Should return correct middle tree"); assertSame(innerTree, inner, "Should return correct inner tree"); } /** * Test for unwrap with incompatible type.
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.2K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbTreeImplTest.java
// Test case for the equals method @Test void testEquals() { SmbTreeImpl tree1 = new SmbTreeImpl(session, "SHARE", "A:"); SmbTreeImpl tree2 = new SmbTreeImpl(session, "SHARE", "A:"); SmbTreeImpl tree3 = new SmbTreeImpl(session, "OTHER", "A:"); assertEquals(tree1, tree2); assertFalse(tree1.equals(tree3)); } // Test case for the unwrap method @Test void testUnwrap() {Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 7.8K 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: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 2.6K 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: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.6K bytes - Viewed (0) -
src/main/java/jcifs/smb/SmbFileHandleImpl.java
this.options = options; this.tree = tree.acquire(); this.tree_num = tree.getTreeId(); if (cfg.isTraceResourceUsage()) { this.creationBacktrace = Thread.currentThread().getStackTrace(); } else { this.creationBacktrace = null; } } /** * @param cfg * @param fid * @param tree * @param unc * @param optionsRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 9.4K bytes - Viewed (1) -
src/main/java/jcifs/internal/TreeConnectResponse.java
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 */ public interface TreeConnectResponse extends CommonServerMessageBlockResponse { /** * Returns the tree identifier (TID) assigned to this tree connection. * * @return tree id
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 1.8K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbPipeOutputStreamTest.java
@Mock SmbTreeHandleImpl tree; @Mock SmbNamedPipe pipe; @Mock SmbFileHandleImpl fileHandle; private SmbPipeOutputStream newStream() throws CIFSException { // Arrange common constructor collaborators to avoid touching network/state when(handle.getPipe()).thenReturn(pipe); when(tree.isSMB2()).thenReturn(true); when(tree.getSendBufferSize()).thenReturn(4096);Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.4K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/tree/Smb2TreeDisconnectRequest.java
*/ package jcifs.internal.smb2.tree; import jcifs.CIFSContext; import jcifs.Configuration; import jcifs.internal.smb2.ServerMessageBlock2Request; import jcifs.internal.smb2.Smb2Constants; import jcifs.internal.util.SMBUtil; /** * SMB2 Tree Disconnect request message. * * This command is used to disconnect from a previously * connected tree (shared resource). * * @author mbechler */
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 2.5K bytes - Viewed (0) -
src/main/java/jcifs/SmbTree.java
*/ package jcifs; /** * Opaque reference to a SMB tree * * @author mbechler * */ public interface SmbTree extends AutoCloseable { /** * Unwraps the tree instance to the specified type * @param <T> the target tree type * @param type the class of the tree type to unwrap to * @return tree instance with the given type */ <T extends SmbTree> T unwrap(Class<T> type);Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 1.3K bytes - Viewed (0)