Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for getConnectedShare (0.3 sec)

  1. src/test/java/jcifs/SmbTreeHandleTest.java

        }
    
        /**
         * Test for getConnectedShare() method.
         * Verifies that the method returns the correct connected share name.
         */
        @Test
        void testGetConnectedShare() {
            when(smbTreeHandle.getConnectedShare()).thenReturn("TEST_SHARE");
            assertEquals("TEST_SHARE", smbTreeHandle.getConnectedShare(), "Connected share should be TEST_SHARE");
        }
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.1K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb/SmbTreeHandleImpl.java

            return this.treeConnection.getTreeType();
        }
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.SmbTreeHandle#getConnectedShare()
         */
        @Override
        public String getConnectedShare() {
            return this.treeConnection.getConnectedShare();
        }
    
        /**
         *
         * {@inheritDoc}
         *
         * @see jcifs.SmbTreeHandle#isSameTree(jcifs.SmbTreeHandle)
         */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 11.1K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb/SmbTreeHandleImplTest.java

        @DisplayName("Tree properties delegate: getTreeType/getConnectedShare")
        void treePropertiesDelegate() {
            // Validates simple property delegation to the connection
            when(treeConnection.getTreeType()).thenReturn(7);
            when(treeConnection.getConnectedShare()).thenReturn("SHARE");
            assertEquals(7, handle.getTreeType());
            assertEquals("SHARE", handle.getConnectedShare());
            verify(treeConnection).getTreeType();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.4K bytes
    - Viewed (0)
  4. src/main/java/jcifs/SmbTreeHandle.java

         */
        String getOEMDomainName() throws CIFSException;
    
        /**
         * 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
         */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2.6K bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb/SmbTreeConnectionTraceTest.java

                CIFSContext ctx = mock(CIFSContext.class);
                new SmbTreeConnectionTrace(ctx).getTreeType();
            }), Arguments.of("getConnectedShare()", (org.junit.jupiter.api.function.Executable) () -> {
                CIFSContext ctx = mock(CIFSContext.class);
                new SmbTreeConnectionTrace(ctx).getConnectedShare();
            }));
        }
    
        @ParameterizedTest(name = "Invalid usage causes NPE: {0}")
        @MethodSource("npePublicGetters")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.7K bytes
    - Viewed (0)
  6. src/test/java/jcifs/smb/SmbTreeConnectionTest.java

        void getTreeId_noTree() {
            SmbTreeConnection c = newConn();
            assertEquals(-1, c.getTreeId());
        }
    
        @Test
        @DisplayName("getTreeType and getConnectedShare delegate to tree")
        void getters_delegateToTree() {
            SmbTreeConnection c = newConn();
            SmbTreeImpl tree = mock(SmbTreeImpl.class);
            when(tree.acquire(false)).thenReturn(tree);
    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/smb/SmbTreeConnection.java

            }
        }
    
        /**
         *
         * Only call this method while holding a tree handle
         *
         * @return the share we are connected to
         */
        public String getConnectedShare() {
            try (SmbTreeImpl t = getTree()) {
                return t.getShare();
            }
        }
    
        /**
         *
         * Only call this method while holding a tree handle
         *
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 30.4K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb/SmbFile.java

                String server = this.fileLocator.getServerWithDfs();
                ACE[] aces;
                final MsrpcShareGetInfo rpc = new MsrpcShareGetInfo(server, th.getConnectedShare());
                if (this.fileLocator.getDfsPath() == null && this.fileLocator.getPort() != -1) {
                    server = server + ":" + this.fileLocator.getPort();
                }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 103.2K bytes
    - Viewed (0)
Back to top