- Sort Score
- Num 10 results
- Language All
Results 41 - 50 of 180 for GetConfig (0.07 seconds)
-
src/test/java/jcifs/context/BaseContextTest.java
assertSame(transportPool, context.getTransportPool(), "Should return same instance on multiple calls"); } @Test @DisplayName("getConfig should return the provided configuration") void testGetConfig() { // When Configuration config = context.getConfig(); // Then assertSame(mockConfig, config, "Should return the same configuration instance"); } @Test
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 07:14:38 GMT 2025 - 15.1K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/io/Smb2FlushResponseTest.java
void testConstructor() { // Given & When Smb2FlushResponse flushResponse = new Smb2FlushResponse(mockConfig); // Then assertNotNull(flushResponse); // Cannot test getConfig() as it's protected } @Nested @DisplayName("writeBytesWireFormat tests") class WriteBytesWireFormatTests { @Test @DisplayName("Should return 0 for write bytes")
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 10.3K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/ioctl/Smb2IoctlRequestTest.java
} private void setupMockConfig() { when(mockConfig.getTransactionBufferSize()).thenReturn(65536); } private void setupMockContext() { when(mockContext.getConfig()).thenReturn(mockConfig); } @Test @DisplayName("Test constructor with config and control code") void testConstructorWithConfigAndControlCode() { setupMockConfig();Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 14.3K bytes - Click Count (0) -
src/test/java/jcifs/smb/SmbSessionImplTest.java
@DisplayName("getters and basic state (happy path)") void testGettersAndState() { SmbSessionImpl session = newSession(); // Basic getters assertSame(configuration, session.getConfig(), "getConfig delegates to transportContext"); assertEquals("EXAMPLE", session.getTargetDomain()); assertEquals("server.example", session.getTargetHost());Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 12.5K bytes - Click Count (0) -
src/main/java/jcifs/smb/SmbTreeImpl.java
} } else { final Trans2FindFirst2 req = new Trans2FindFirst2(tf.getConfig(), "\\", "*", SmbConstants.ATTR_DIRECTORY, tf.getConfig().getListCount(), tf.getConfig().getListSize()); final Trans2FindFirst2Response resp = new Trans2FindFirst2Response(tf.getConfig()); try { send(req, resp); } catch (final SmbException e) {Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sun Aug 31 08:00:57 GMT 2025 - 30K bytes - Click Count (0) -
src/test/java/jcifs/smb/SmbTreeConnectionTest.java
return new URL(null, spec, new Handler()); } @Test @DisplayName("getConfig returns context config") void getConfig_returnsConfig() { SmbTreeConnection c = newConn(); assertSame(config, c.getConfig()); } @Test @DisplayName("acquire calls tree.acquire on first usage, release calls tree.release at zero")
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 07:14:38 GMT 2025 - 13K bytes - Click Count (0) -
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: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 20.8K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/info/Smb2QueryDirectoryRequestTest.java
void setUp() { MockitoAnnotations.openMocks(this); when(mockConfig.getMaximumBufferSize()).thenReturn(65536); when(mockConfig.getListSize()).thenReturn(65536); when(mockContext.getConfig()).thenReturn(mockConfig); } @Test @DisplayName("Test constructor with configuration only") void testConstructorWithConfig() { request = new Smb2QueryDirectoryRequest(mockConfig);
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 13.2K bytes - Click Count (0) -
src/main/java/jcifs/internal/smb2/ServerMessageBlock2Response.java
// make sure that validation is performed in any case final Smb2SigningDigest dgst = getDigest(); if (dgst != null && !isAsync() && (getConfig().isRequireSecureNegotiate() || getErrorCode() == NtStatus.NT_STATUS_SUCCESS)) { // MID checking not required here as we only read responses for which we're waitingCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sun Aug 31 08:00:57 GMT 2025 - 8.1K bytes - Click Count (0) -
src/main/java/jcifs/internal/smb1/ServerMessageBlock.java
this.expiration = exp; } /** * Gets the configuration object for this message block * @return the config */ protected final Configuration getConfig() { return this.config; } /** * */ @Override public void reset() {Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 38.9K bytes - Click Count (0)