Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 18 of 18 for getTreeId (0.04 sec)

  1. src/test/java/jcifs/internal/smb2/tree/Smb2TreeConnectResponseTest.java

            assertTrue(response instanceof TreeConnectResponse);
    
            // Test all interface methods
            assertNull(response.getService()); // getService returns null in SMB2
            assertEquals(response.getTreeId(), response.getTid());
        }
    
        /**
         * Helper method to create a valid response buffer
         */
        private byte[] createValidResponseBuffer(int shareType, int shareFlags, int capabilities, int maxAccess) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 19.3K bytes
    - Viewed (0)
  2. src/main/java/jcifs/internal/smb2/multichannel/ChannelLoadBalancer.java

            if (message instanceof ServerMessageBlock2Request) {
                ServerMessageBlock2Request smb2Request = (ServerMessageBlock2Request) message;
                affinityKey = smb2Request.getTreeId();
            }
    
            if (affinityKey != 0) {
                // Select channel based on affinity key
                List<ChannelInfo> list = new ArrayList<>(channels);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 8.2K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb2/multichannel/MultiChannelIntegrationTest.java

            }
    
            // Test channel selection with mock request when no channels available
            ServerMessageBlock2Request mockRequest = mock(ServerMessageBlock2Request.class);
            when(mockRequest.getTreeId()).thenReturn(123);
    
            // Should throw NoAvailableChannelException when no healthy channels
            assertThrows(ChannelLoadBalancer.NoAvailableChannelException.class, () -> loadBalancer.selectChannel(mockRequest),
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 11:13:46 UTC 2025
    - 8.2K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb/SmbFileInputStreamTest.java

            when(mockTree.getMaximumBufferSize()).thenReturn(0x10000);
            when(mockTree.getConfig()).thenReturn(mockConfig);
            when(mockTree.isConnected()).thenReturn(true);
            when(mockTree.getTreeId()).thenReturn(1L);
    
            when(mockFile.getType()).thenReturn(SmbConstants.TYPE_FILESYSTEM);
        }
    
        @Nested
        @DisplayName("Happy path")
        class HappyPath {
    
            @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 12.8K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb2/ServerMessageBlock2RequestTest.java

            @Test
            @DisplayName("setTid should set tree ID")
            void testSetTid() {
                int tid = 12345;
                testRequest.setTid(tid);
                assertEquals(tid, testRequest.getTreeId());
            }
        }
    
        @Nested
        @DisplayName("Async Operation Tests")
        class AsyncOperationTests {
    
            @Test
            @DisplayName("isResponseAsync should return false when asyncId is 0")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.7K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb/SmbTreeConnection.java

         */
        void setNonPooled(final boolean np) {
            this.nonPooled = np;
        }
    
        /**
         * @return the currently connected tid
         */
        @SuppressWarnings("resource")
        public long getTreeId() {
            final SmbTreeImpl t = getTreeInternal();
            if (t == null) {
                return -1;
            }
            return t.getTreeNum();
        }
    
        /**
         *
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 30.4K bytes
    - Viewed (0)
  7. src/main/java/jcifs/internal/smb2/ServerMessageBlock2.java

            this.command = command;
        }
    
        /**
         * Gets the tree identifier for this message.
         *
         * @return the treeId
         */
        public final int getTreeId() {
            return this.treeId;
        }
    
        /**
         * Sets the tree identifier for this message.
         *
         * @param treeId
         *            the treeId to set
         */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 24K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/TreeConnectResponseTest.java

            @BeforeEach
            void setUp() {
                response = new Smb2TreeConnectResponse(mockConfig);
            }
    
            @Test
            @DisplayName("Should return tree ID from getTreeId")
            void testGetTid() {
                // Given
                response.setTreeId(54321);
    
                // When
                int tid = response.getTid();
    
                // Then
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 24.9K bytes
    - Viewed (0)
Back to top