Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 664 for tree (0.04 sec)

  1. 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)
  2. 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)
  3. 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)
  4. src/main/java/jcifs/smb/SmbTreeConnection.java

                log.debug("Switching tree");
                if (t != null) {
                    log.debug("Acquired tree on switch " + t);
                    t.acquire();
                    this.treeAcquired = true;
                } else {
                    this.treeAcquired = false;
                }
    
                this.tree = t;
                if ((old != null) && wasAcquired) {
                    // release
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 30.4K bytes
    - Viewed (0)
  5. 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)
  6. 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)
  7. src/test/java/jcifs/smb/DirFileEntryEnumIterator2Test.java

        @Mock
        private SmbTreeHandleImpl tree;
    
        @Mock
        private SmbResource parent;
    
        @Mock
        private SmbResourceLocator locator;
    
        @Mock
        private Configuration config;
    
        @Mock
        private CIFSContext cifsContext;
    
        @BeforeEach
        void setup() {
            // Tree handle lifecycle and config
            lenient().when(tree.acquire()).thenReturn(tree);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.7K bytes
    - Viewed (0)
  8. src/test/java/jcifs/smb/SmbSessionImplSecurityTest.java

                            // Get or create tree
                            SmbTreeImpl tree = session.getSmbTree(share, null);
                            assertNotNull(tree, "Tree should not be null");
    
                            // Verify we can acquire the tree
                            tree.acquire();
                            successCount.incrementAndGet();
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 11K bytes
    - Viewed (0)
  9. src/test/java/jcifs/smb/DirFileEntryEnumIteratorBaseTest.java

            TestIterator it = TestIterator.create(tree, parent, wildcard, null, attrs, initial, pages);
    
            // Assert
            assertSame(tree, it.getTreeHandle(), "tree handle should be same instance returned by acquire");
            assertEquals(attrs, it.getSearchAttributes());
            assertEquals(wildcard, it.getWildcard());
            assertSame(parent, it.getParent());
            verify(tree, times(1)).acquire();
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.5K bytes
    - Viewed (0)
  10. src/main/java/jcifs/smb/SmbTreeHandleImpl.java

                try {
                    if (this.treeConnection != null) {
                        // Release the tree connection if possible
                        log.debug("Releasing tree connection during emergency cleanup");
                    }
                } catch (Exception e) {
                    log.debug("Error releasing tree connection during emergency cleanup", e);
                }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 11.1K bytes
    - Viewed (0)
Back to top