Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 1,428 for Tree (3.77 sec)

  1. src/test/java/jcifs/smb/SmbPipeInputStreamTest.java

            when(tree.hasCapability(anyInt())).thenReturn(false);
            return new SmbPipeInputStream(handle, tree);
        }
    
        private SmbPipeInputStream newStreamWithMinimalStubs(boolean smb2) throws CIFSException {
            when(handle.getPipe()).thenReturn(pipe);
            when(tree.isSMB2()).thenReturn(smb2);
            return new SmbPipeInputStream(handle, tree);
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.9K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb/SmbTreeImpl.java

        }
    
        @Override
        public boolean equals(final Object obj) {
            if (obj instanceof final SmbTreeImpl tree) {
                return matches(tree.share, tree.service);
            }
            return false;
        }
    
        public SmbTreeImpl acquire() {
            return acquire(true);
        }
    
        /**
         * {@inheritDoc}
         *
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 30K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb/SmbTreeImplTest.java

            SmbTreeImpl tree = new SmbTreeImpl(session, "SHARE", "A:");
            assertNotNull(tree);
            assertEquals("SHARE", tree.getShare());
            assertEquals("A:", tree.getService());
        }
    
        // Test case for the matches method
        @Test
        void testMatches() {
            SmbTreeImpl tree = new SmbTreeImpl(session, "SHARE", "A:");
            assertTrue(tree.matches("share", "A:"));
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.8K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb/DirFileEntryEnumIterator1Test.java

        void setup() throws MalformedURLException, CIFSException {
            // Common happy-path defaults
            // Use lenient() to avoid strict stubbing issues with Mockito
            lenient().when(tree.acquire()).thenReturn(tree);
            lenient().when(tree.getConfig()).thenReturn(config);
            lenient().when(config.getListCount()).thenReturn(10);
            lenient().when(config.getListSize()).thenReturn(4096);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.7K bytes
    - Viewed (0)
  5. 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 options
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 9.4K bytes
    - Viewed (1)
  6. src/test/java/jcifs/smb/SmbTreeConnectionTest.java

        }
    
        @Test
        @DisplayName("acquire calls tree.acquire on first usage, release calls tree.release at zero")
        void acquire_release_lifecycle() {
            SmbTreeConnection c = newConn();
            SmbTreeImpl tree = mock(SmbTreeImpl.class);
            when(tree.acquire(false)).thenReturn(tree);
            when(tree.acquire()).thenReturn(tree);
    
            setTree(c, tree);
    
            // Act: first acquire triggers tree.acquire()
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 13K bytes
    - Viewed (0)
  7. src/main/java/jcifs/SmbTree.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;
    
    /**
     * 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
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 1.3K bytes
    - Viewed (0)
  8. 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)
  9. src/test/java/jcifs/smb/SmbPipeHandleInternalTest.java

            SmbPipeHandleImpl handle = newHandleWithBasicStubs(type, "\\\\pipe\\\\t");
    
            // Setup the tree handle properly
            when(pipe.ensureTreeConnected()).thenReturn(tree);
            when(tree.acquire()).thenReturn(tree);
    
            // Setup for ensureOpen
            when(tree.isSMB2()).thenReturn(false);
            when(tree.hasCapability(SmbConstants.CAP_NT_SMBS)).thenReturn(true);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 16.7K bytes
    - Viewed (0)
  10. 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: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.4K bytes
    - Viewed (0)
Back to top