Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 29 for getNameServiceClient (1.13 sec)

  1. src/test/java/jcifs/netbios/NbtAddressTest.java

        }
    
        @Test
        void testNextCalledName_SmbServerName_NameType0x1D() throws UnknownHostException {
            // Test nextCalledName when calledName is SMBSERVER_NAME and nameType is 0x1D
            when(mockContext.getNameServiceClient()).thenReturn(mockNameServiceClient);
            mockName = new Name(mockConfig, "MASTERBROWSER", 0x1D, null);
            NbtAddress nbtAddress = new NbtAddress(mockName, testAddressInt, false, NbtAddress.H_NODE);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.4K bytes
    - Viewed (0)
  2. src/test/java/jcifs/context/CIFSContextWrapperTest.java

        void testGetNameServiceClient() {
            // Test getNameServiceClient() method
            NameServiceClient mockNameServiceClient = mock(NameServiceClient.class);
            when(mockDelegate.getNameServiceClient()).thenReturn(mockNameServiceClient);
            assertEquals(mockNameServiceClient, cifsContextWrapper.getNameServiceClient());
            verify(mockDelegate).getNameServiceClient();
        }
    
        @Test
        void testGetBufferCache() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.7K bytes
    - Viewed (0)
  3. src/test/java/jcifs/context/BaseContextTest.java

        }
    
        @Test
        @DisplayName("getNameServiceClient should return initialized name service client")
        void testGetNameServiceClient() {
            // When
            NameServiceClient nameServiceClient = context.getNameServiceClient();
    
            // Then
            assertNotNull(nameServiceClient, "Name service client should not be null");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 15.1K bytes
    - Viewed (0)
  4. src/main/java/jcifs/netbios/NbtAddress.java

            if (this.hostName.isUnknown()) {
                tc.getNameServiceClient().getNbtAllByAddress(this);
            }
        }
    
        void checkNodeStatusData(final CIFSContext tc) throws UnknownHostException {
            if (!this.isDataFromNodeStatus) {
                tc.getNameServiceClient().getNbtAllByAddress(this);
            }
        }
    
        @Override
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 15.1K bytes
    - Viewed (0)
  5. src/test/java/jcifs/CIFSContextTest.java

            NameServiceClient mockClient = mock(NameServiceClient.class);
            when(mockContext.getNameServiceClient()).thenReturn(mockClient);
    
            // When
            NameServiceClient client = mockContext.getNameServiceClient();
    
            // Then
            assertEquals(mockClient, client);
            verify(mockContext).getNameServiceClient();
        }
    
        @Test
        @DisplayName("Should get BufferCache")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.8K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb/SmbResourceLocatorImpl.java

                            this.addresses = this.ctx.getNameServiceClient().getAllByName(this.ctx.getConfig().getDefaultDomain(), true);
                        }
                    } else if (path.length() == 0 || path.equals("/")) {
                        this.addresses = this.ctx.getNameServiceClient().getAllByName(host, true);
                    } else {
                        this.addresses = this.ctx.getNameServiceClient().getAllByName(host, false);
                    }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 23.6K bytes
    - Viewed (0)
  7. src/main/java/jcifs/context/CIFSContextWrapper.java

            return this.delegate.renewCredentials(locationHint, error);
        }
    
        @Override
        public NameServiceClient getNameServiceClient() {
            return this.delegate.getNameServiceClient();
        }
    
        @Override
        public BufferCache getBufferCache() {
            return this.delegate.getBufferCache();
        }
    
        @Override
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 4.9K bytes
    - Viewed (0)
  8. src/test/java/jcifs/ntlmssp/Type2MessageTest.java

            NetbiosAddress mockHost = mock(NetbiosAddress.class);
    
            when(mockContext.getConfig()).thenReturn(mockConfig);
            when(mockContext.getNameServiceClient()).thenReturn(mockNameServiceClient);
            when(mockNameServiceClient.getLocalHost()).thenReturn(mockHost);
            when(mockHost.getHostName()).thenReturn(TEST_HOSTNAME);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 38.9K bytes
    - Viewed (0)
  9. src/main/java/jcifs/context/BaseContext.java

        @Override
        public DfsResolver getDfs() {
            return this.dfs;
        }
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.CIFSContext#getNameServiceClient()
         */
        @Override
        public NameServiceClient getNameServiceClient() {
            return this.nameServiceClient;
        }
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.CIFSContext#getBufferCache()
         */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 5.5K bytes
    - Viewed (0)
  10. src/main/java/jcifs/http/NtlmHttpFilter.java

                        }
                        dc = chal.dc;
                        challenge = chal.challenge;
                    } else {
                        dc = getTransportContext().getNameServiceClient().getByName(this.domainController, true);
                        challenge = getTransportContext().getTransportPool().getChallenge(getTransportContext(), dc);
                    }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 15.3K bytes
    - Viewed (0)
Back to top