Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 18 for getTransportPool (0.05 sec)

  1. src/test/java/jcifs/context/BaseContextTest.java

            }
        }
    
        @Test
        @DisplayName("getTransportPool should return initialized transport pool")
        void testGetTransportPool() {
            // When
            SmbTransportPool transportPool = context.getTransportPool();
    
            // Then
            assertNotNull(transportPool, "Transport pool should not be null");
            assertSame(transportPool, context.getTransportPool(), "Should return same instance on multiple calls");
        }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 15.1K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb/SmbTransportPoolImplTest.java

            // Setup default mock behaviors
            when(ctx.getConfig()).thenReturn(config);
            when(ctx.getNameServiceClient()).thenReturn(nameSvc);
            when(ctx.getCredentials()).thenReturn(creds);
            when(ctx.getTransportPool()).thenReturn(pool);
    
            // Default config values
            when(config.getLocalAddr()).thenReturn(null);
            when(config.getLocalPort()).thenReturn(0);
            when(config.getSessionLimit()).thenReturn(10);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 19.2K bytes
    - Viewed (0)
  3. src/test/java/jcifs/context/CIFSContextWrapperTest.java

        @Test
        void testGetTransportPool() {
            // Test getTransportPool() method
            SmbTransportPool mockSmbTransportPool = mock(SmbTransportPool.class);
            when(mockDelegate.getTransportPool()).thenReturn(mockSmbTransportPool);
            assertEquals(mockSmbTransportPool, cifsContextWrapper.getTransportPool());
            verify(mockDelegate).getTransportPool();
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.7K bytes
    - Viewed (0)
  4. src/test/java/jcifs/CIFSContextTest.java

            // Given
            SmbTransportPool mockPool = mock(SmbTransportPool.class);
            when(mockContext.getTransportPool()).thenReturn(mockPool);
    
            // When
            SmbTransportPool pool = mockContext.getTransportPool();
    
            // Then
            assertEquals(mockPool, pool);
            verify(mockContext).getTransportPool();
        }
    
        @Test
        @DisplayName("Should get DfsResolver")
        void testGetDfs() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.8K bytes
    - Viewed (0)
  5. src/main/java/jcifs/context/CIFSContextWrapper.java

        }
    
        @Override
        public BufferCache getBufferCache() {
            return this.delegate.getBufferCache();
        }
    
        @Override
        public SmbTransportPool getTransportPool() {
            return this.delegate.getTransportPool();
        }
    
        @Override
        public boolean close() throws CIFSException {
            return this.delegate.close();
        }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 4.9K bytes
    - Viewed (0)
  6. src/main/java/jcifs/http/NtlmServlet.java

                }
                NtlmPasswordAuthentication ntlm;
                if (msg.startsWith("NTLM ")) {
                    final byte[] challenge = getTransportContext().getTransportPool().getChallenge(getTransportContext(), dc);
                    ntlm = NtlmSsp.authenticate(getTransportContext(), request, response, challenge);
                    if (ntlm == null) {
                        return;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 8.1K bytes
    - Viewed (1)
  7. src/test/java/jcifs/DfsResolverTest.java

        }
    
        @Test
        void testGetDc_Success() throws CIFSException, IOException {
            when(mockConfig.isDfsDisabled()).thenReturn(false);
            when(mockContext.getTransportPool()).thenReturn(mockTransportPool);
            when(mockTransportPool.getSmbTransport(any(), anyString(), anyInt(), anyBoolean(), anyBoolean())).thenReturn(mockTransport);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.5K bytes
    - Viewed (0)
  8. src/main/java/jcifs/http/NtlmHttpFilter.java

                    } else {
                        dc = getTransportContext().getNameServiceClient().getByName(this.domainController, true);
                        challenge = getTransportContext().getTransportPool().getChallenge(getTransportContext(), dc);
                    }
    
                    ntlm = NtlmSsp.authenticate(getTransportContext(), req, resp, challenge);
                    if (ntlm == null) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 15.3K bytes
    - Viewed (0)
  9. src/main/java/jcifs/context/BaseContext.java

            } catch (final MalformedURLException e) {
                throw new CIFSException("Invalid URL " + url, e);
            }
        }
    
        @Override
        public SmbTransportPool getTransportPool() {
            return this.transportPool;
        }
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.CIFSContext#getConfig()
         */
        @Override
        public Configuration getConfig() {
    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/smb/DfsImpl.java

                // https://lists.samba.org/archive/samba-technical/2009-August/066486.html
                // UniAddress addr = UniAddress.getByName(authDomain, true, tf);
                // SmbTransport trans = tf.getTransportPool().getSmbTransport(tf, addr, 0);
                try (SmbTransport dc = getDc(tf, authDomain)) {
                    final CacheEntry<Map<String, CacheEntry<DfsReferralDataInternal>>> entry =
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 29.7K bytes
    - Viewed (0)
Back to top