Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 174 for GetConfig (0.09 sec)

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

        @Test
        @DisplayName("openConnection returns SmbFile using provided CIFSContext")
        void testOpenConnection_UsesProvidedContext() throws MalformedURLException, IOException {
            // Arrange
            when(mockCtx.getConfig()).thenReturn(mockCfg);
            when(mockCfg.isTraceResourceUsage()).thenReturn(false);
    
            Handler handler = newHandlerWith(mockCtx);
            URL url = new URL(null, "smb://example-host/share/", new Handler());
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.8K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb/SmbWatchHandleImplTest.java

            when(handle.isValid()).thenReturn(true);
            when(handle.getTree()).thenReturn(tree);
            when(tree.isSMB2()).thenReturn(true);
            when(tree.getConfig()).thenReturn(mock(Configuration.class));
            when(handle.getFileId()).thenReturn(fileId);
            when(tree.send(any(CommonServerMessageBlockRequest.class), any(), any(), any())).thenReturn(resp);
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.5K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb2/tree/Smb2TreeDisconnectRequestTest.java

        void testCreateResponse() {
            // Given
            Configuration mockConfig = mock(Configuration.class);
            CIFSContext mockContext = mock(CIFSContext.class);
            when(mockContext.getConfig()).thenReturn(mockConfig);
            Smb2TreeDisconnectRequest request = new Smb2TreeDisconnectRequest(mockConfig);
    
            // When
            Smb2TreeDisconnectResponse response = request.createResponse(mockContext, request);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.1K bytes
    - Viewed (0)
  4. src/main/java/jcifs/context/CIFSContextWrapper.java

         * @return the wrapped context
         */
        protected CIFSContext wrap(final CIFSContext newContext) {
            return newContext;
        }
    
        @Override
        public Configuration getConfig() {
            return this.delegate.getConfig();
        }
    
        @Override
        public DfsResolver getDfs() {
            return this.delegate.getDfs();
        }
    
        @Override
        public Credentials getCredentials() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 4.9K bytes
    - Viewed (0)
  5. src/main/java/jcifs/internal/smb2/session/Smb2SessionSetupRequest.java

         */
        public Smb2SessionSetupRequest(final CIFSContext context, final int securityMode, final int capabilities, final long previousSessionid,
                final byte[] token) {
            super(context.getConfig(), SMB2_SESSION_SETUP);
            this.securityMode = securityMode;
            this.capabilities = capabilities;
            this.previousSessionId = previousSessionid;
            this.token = token;
        }
    
        @Override
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 4.8K bytes
    - Viewed (0)
  6. src/test/java/jcifs/smb/CredentialsInternalTest.java

                }
                // Exercise interaction with dependency for verification purposes
                // These methods do not throw and allow interaction checks.
                tc.getConfig();
                tc.getCredentials();
    
                // Minimal behavior: return a mock SSPContext with lenient stubbing
                SSPContext ctx = mock(SSPContext.class);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.9K bytes
    - Viewed (0)
  7. src/main/java/jcifs/context/BaseContext.java

        public SmbTransportPool getTransportPool() {
            return this.transportPool;
        }
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.CIFSContext#getConfig()
         */
        @Override
        public Configuration getConfig() {
            return this.config;
        }
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.CIFSContext#getDfs()
         */
        @Override
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 5.5K bytes
    - Viewed (0)
  8. docs/smb3-features/02-persistent-handles-design.md

            }
        }
        
        // Request new durable handle if configured
        if (context.getConfig().isUseDurableHandles()) {
            requestDurableHandle();
        }
        
        // ... rest of normal connection logic ...
    }
    
    private void requestDurableHandle() {
        Configuration config = context.getConfig();
        
        // Determine handle type based on configuration and server capabilities
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 02:53:50 UTC 2025
    - 31.6K bytes
    - Viewed (0)
  9. src/test/java/jcifs/ntlmssp/Type2MessageTest.java

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

        private NameServiceClientImpl nameServiceClient;
    
        @BeforeEach
        void setUp() throws UnknownHostException {
            // Configure mock context with fast timeouts
            when(mockContext.getConfig()).thenReturn(mockConfig);
    
            // Setup configuration with minimal timeouts for fast testing
            when(mockConfig.getNetbiosSoTimeout()).thenReturn(100); // Very short timeout
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 11K bytes
    - Viewed (0)
Back to top