Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 31 - 40 of 190 for get_config (0.12 seconds)

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

            verify(tc, never()).getConfig();
            verifyNoInteractions(config);
        }
    
        @Test
        @DisplayName("createContext: Kerberos present but forceFallback triggers NTLM path")
        void createContext_forceFallback_triggersNtlmAndFailsOnNonNtlmToken() throws CIFSException {
            when(tc.getConfig()).thenReturn(config);
            when(config.isAllowNTLMFallback()).thenReturn(true);
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 10.9K bytes
    - Click Count (0)
  2. src/test/java/jcifs/smb/SmbFileTest.java

                when(mockLocator.getUNCPath()).thenReturn("\\localhost\share\newdir");
                when(mockLocator.getShare()).thenReturn("share");
                // Mock tree handle's getConfig() to return our mock config
                when(mockTreeHandle.getConfig()).thenReturn(mockConfig);
            }
    
            @Test
            void testMkdir() throws SmbException, CIFSException {
                // Arrange
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 20.8K bytes
    - Click Count (0)
  3. src/main/java/jcifs/smb/NtlmPasswordAuthenticator.java

                log.debug("Ignoring invalid initial token", e1);
            }
    
            return new SpnegoContext(tc.getConfig(), setupTargetName(tc, host, new NtlmContext(tc, this, doSigning)));
        }
    
        private static SSPContext setupTargetName(CIFSContext tc, String host, NtlmContext ntlmContext) {
            if (host != null && tc.getConfig().isSendNTLMTargetName()) {
                ntlmContext.setTargetName(String.format("cifs/%s", host));
            }
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Sun Aug 31 08:00:57 GMT 2025
    - 30.3K bytes
    - Click Count (0)
  4. src/main/java/jcifs/internal/smb2/ServerMessageBlock2Request.java

         */
        @Override
        public boolean allowChain(final CommonServerMessageBlockRequest next) {
            return getConfig().isAllowCompound(getClass().getSimpleName()) && getConfig().isAllowCompound(next.getClass().getSimpleName());
        }
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.internal.CommonServerMessageBlockRequest#createCancel()
         */
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Mon Aug 25 14:34:10 GMT 2025
    - 7.2K bytes
    - Click Count (0)
  5. src/test/java/jcifs/SmbTreeHandleTest.java

        @Mock
        private Configuration mockConfig;
    
        /**
         * Test for getConfig() method.
         * Verifies that the method returns the expected Configuration object.
         */
        @Test
        void testGetConfig() {
            when(smbTreeHandle.getConfig()).thenReturn(mockConfig);
            Configuration config = smbTreeHandle.getConfig();
            assertNotNull(config, "Configuration should not be null");
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 7.1K bytes
    - Click Count (0)
  6. src/main/java/jcifs/smb/SmbFileOutputStream.java

            }
    
            if (this.useNTSmbs) {
                this.reqx = new SmbComWriteAndX(th.getConfig());
                this.rspx = new SmbComWriteAndXResponse(th.getConfig());
            } else {
                this.req = new SmbComWrite(th.getConfig());
                this.rsp = new SmbComWriteResponse(th.getConfig());
            }
        }
    
        /**
         * Ensures that the file descriptor is openend
         *
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 12.8K bytes
    - Click Count (0)
  7. src/test/java/jcifs/smb/DirFileEntryEnumIterator2Test.java

            lenient().when(tree.isConnected()).thenReturn(true);
    
            // CIFS context returns same config to build responses during initResponse
            lenient().when(cifsContext.getConfig()).thenReturn(config);
        }
    
        @AfterEach
        void teardown() {
            // No global state to reset beyond mocks
        }
    
        static Stream<String> wildcardProvider() {
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 13.7K bytes
    - Click Count (0)
  8. src/test/java/jcifs/smb/SmbTreeConnectionTraceTest.java

            assertEquals(-1L, trace.getTreeId());
        }
    
        @Test
        @DisplayName("getConfig(): delegates to context")
        void getConfig_delegatesToContext() {
            // Arrange
            CIFSContext ctx = mock(CIFSContext.class);
            Configuration cfg = mock(Configuration.class);
            when(ctx.getConfig()).thenReturn(cfg);
            SmbTreeConnectionTrace trace = new SmbTreeConnectionTrace(ctx);
    
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 8.7K bytes
    - Click Count (0)
  9. src/test/java/jcifs/CIFSContextTest.java

            // Given
            Configuration mockConfig = mock(Configuration.class);
            when(mockContext.getConfig()).thenReturn(mockConfig);
    
            // When
            Configuration config = mockContext.getConfig();
    
            // Then
            assertEquals(mockConfig, config);
            verify(mockContext).getConfig();
        }
    
        @Test
        @DisplayName("Should get NameServiceClient")
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 8.8K bytes
    - Click Count (0)
  10. src/main/java/jcifs/smb/SmbPipeInputStream.java

                }
                final TransPeekNamedPipe req = new TransPeekNamedPipe(th.getConfig(), this.handle.getUncPath(), fd.getFid());
                final TransPeekNamedPipeResponse resp = new TransPeekNamedPipeResponse(th.getConfig());
                th.send(req, resp, RequestParam.NO_RETRY);
                if (resp.getStatus() == TransPeekNamedPipeResponse.STATUS_DISCONNECTED
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 3.8K bytes
    - Click Count (0)
Back to Top