Search Options

Results per page
Sort
Preferred Languages
Advance

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

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

        @Test
        @DisplayName("getPreNTLMResponse: uses OEM bytes, truncates to 14, verifies interactions")
        void testGetPreNTLMResponse_basicAndInteractions() throws Exception {
            // Arrange
            when(cifsContext.getConfig()).thenReturn(configuration);
            when(configuration.getOemEncoding()).thenReturn("Cp850");
            String password14 = "ABCDEFGHIJKLMN"; // 14 chars
            String password15 = "ABCDEFGHIJKLMNO"; // 15 chars, same first 14
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 12K bytes
    - Viewed (1)
  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/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)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. docs/smb3-features/05-rdma-smb-direct-design.md

    public void testRdmaFallbackToTcp() throws Exception {
        // Test that we properly fall back to TCP when RDMA is not available
        CIFSContext context = getTestContext();
        context.getConfig().setProperty("jcifs.smb.client.useRDMA", "true");
        context.getConfig().setProperty("jcifs.smb.client.rdmaProvider", "nonexistent");
        
        SmbFile file = new SmbFile("smb://server/share/test.txt", context);
        
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 02:53:50 UTC 2025
    - 35.9K bytes
    - Viewed (0)
Back to top