- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 297 for when (0.04 sec)
-
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) -
src/test/java/jcifs/netbios/NameServiceClientImplTest.java
when(mockConfig.getNetbiosLocalAddress()).thenReturn(InetAddress.getByName("127.0.0.1")); when(mockConfig.getBroadcastAddress()).thenReturn(InetAddress.getByName("255.255.255.255")); when(mockConfig.getNetbiosSndBufSize()).thenReturn(576); when(mockConfig.getNetbiosRcvBufSize()).thenReturn(576);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 11K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/Smb2EncryptionContextTest.java
void testGetCipherId() { // When int cipherId = encryptionContext.getCipherId(); // Then assertEquals(1, cipherId, "Should return the cipher ID set in constructor"); } @Test @DisplayName("Should return correct dialect version") void testGetDialect() { // When DialectVersion dialect = encryptionContext.getDialect();
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 44.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/io/Smb2ReadResponseTest.java
headerStartField.setAccessible(true); headerStartField.set(response, 0); // When int bytesRead = response.readBytesWireFormat(buffer, bodyStart); // Then // When dataLength is 0, it returns max(16, dataOffset + 0 - bodyStart) = max(16, 80) = 80 assertEquals(80, bytesRead); assertEquals(0, response.getDataLength());
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 22.1K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbOperationExceptionTest.java
} @Test @DisplayName("Should create exception with error code and message") void testBasicCreation() { // When exception = new SmbOperationException(SmbOperationException.ErrorCode.FILE_NOT_FOUND, "test.txt"); // Then assertNotNull(exception); assertEquals(SmbOperationException.ErrorCode.FILE_NOT_FOUND, exception.getErrorCode());Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 16.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/notify/Smb2ChangeNotifyResponseTest.java
} // When response.readBytesWireFormat(buffer, offset); // Then List<FileNotifyInformation> notifications = response.getNotifyInformation(); assertEquals(notificationCount, notifications.size()); } @Test @DisplayName("Should handle null configuration") void testNullConfiguration() { // WhenRegistered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 18.8K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/BufferCacheSecurityTest.java
assertEquals(SmbComTransaction.TRANSACTION_BUF_SIZE, buffer.length, "Buffer should have correct size"); buffers.add(buffer); } // When - Release all buffers back for (byte[] buffer : buffers) { BufferCache.releaseBuffer(buffer); } // Then - Should be able to get buffers again
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 9.6K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbSessionImplSecurityTest.java
Mockito.when(mockContext.getConfig()).thenReturn(mockConfig); Mockito.when(mockContext.getCredentials()).thenReturn(mockCredentials); Mockito.when(mockCredentials.unwrap(Mockito.any())).thenReturn(mockCredentialsInternal); Mockito.when(mockCredentialsInternal.clone()).thenReturn(mockCredentialsInternal); Mockito.when(mockTransport.acquire()).thenReturn(mockTransport); }Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 11K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/lease/DirectoryLeaseManagerTest.java
// Setup mock files when(mockFile1.getName()).thenReturn("file1.txt"); when(mockFile1.length()).thenReturn(1024L); when(mockFile1.lastModified()).thenReturn(1000L); when(mockFile1.isDirectory()).thenReturn(false); when(mockFile1.getAttributes()).thenReturn(0x20); when(mockFile1.createTime()).thenReturn(500L); when(mockFile1.lastAccess()).thenReturn(800L);Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 23 01:47:47 UTC 2025 - 15.9K bytes - Viewed (0) -
src/test/java/jcifs/internal/witness/WitnessClientTest.java
lenient().when(mockContext.getConfig()).thenReturn(mockConfig); lenient().when(mockConfig.getWitnessHeartbeatTimeout()).thenReturn(120000L); lenient().when(mockConfig.getWitnessRegistrationTimeout()).thenReturn(300000L); lenient().when(mockConfig.getWitnessReconnectDelay()).thenReturn(1000L); lenient().when(mockConfig.isWitnessServiceDiscovery()).thenReturn(true); }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 23 09:06:40 UTC 2025 - 9.8K bytes - Viewed (0)