- Sort Score
- Result 10 results
- Languages All
Results 81 - 90 of 2,390 for when (0.08 sec)
-
src/test/java/jcifs/http/NtlmServletTest.java
} when(cifsContext.getTransportPool()).thenReturn(transportPool); when(cifsContext.getNameServiceClient()).thenReturn(nameServiceClient); lenient().when(cifsContext.getConfig()).thenReturn(configuration); lenient().when(configuration.getDefaultDomain()).thenReturn("TEST_DOMAIN");Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 21 04:51:33 UTC 2025 - 11.5K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbTransportImplTest.java
@BeforeEach void setUp() throws Exception { when(ctx.getConfig()).thenReturn(cfg); when(cfg.isSigningEnforced()).thenReturn(false); when(cfg.getSessionTimeout()).thenReturn(30_000); when(cfg.getResponseTimeout()).thenReturn(5_000); when(address.getHostAddress()).thenReturn("127.0.0.1"); when(address.getHostName()).thenReturn("localhost");Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 17.6K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/com/SmbComCloseTest.java
context = mock(CIFSContext.class); when(context.getConfig()).thenReturn(config); } /** * Test method for {@link jcifs.internal.smb1.com.SmbComClose#SmbComClose(jcifs.Configuration, int, long)}. */ @Test public void testConstructor() { // Given int fid = 123; long lastWriteTime = System.currentTimeMillis(); // When
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 6.4K bytes - Viewed (0) -
src/test/java/jcifs/http/NetworkExplorerTest.java
lenient().when(request.getSession()).thenReturn(session); lenient().when(request.getSession(false)).thenReturn(session); lenient().when(request.getSession(true)).thenReturn(session); // Setup default session attribute behavior lenient().when(session.getAttribute(anyString())).thenReturn(null); // Setup SmbFile mock lenient().when(smbFile.getLocator()).thenReturn(locator);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 21 04:51:33 UTC 2025 - 21.2K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/ioctl/SrvCopychunkTest.java
// Given long sourceOffset = 1024L; long targetOffset = 2048L; int length = 4096; // When SrvCopychunk chunk = new SrvCopychunk(sourceOffset, targetOffset, length); // Then assertNotNull(chunk); } @ParameterizedTest @DisplayName("Should create instance with various offset values")Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.4K bytes - Viewed (0) -
docs/changelogs/changelog_3x.md
``` * Fix: Don't miss cancels when sending HTTP/2 request headers. * Fix: Don't miss whole operation timeouts when calls redirect. * Fix: Don't leak connections if web sockets have malformed responses or if `onOpen()` throws. * Fix: Don't retry when request bodies fail due to `FileNotFoundException`. * Fix: Don't crash when URLs have IPv4-mapped IPv6 addresses. * Fix: Don't crash when building `HandshakeCertificates` on Android API 28.
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Sun Feb 06 14:55:54 UTC 2022 - 50.8K bytes - Viewed (0) -
src/test/java/jcifs/pac/kerberos/KerberosTicketTest.java
when(kerberosKey.getKeyType()).thenReturn(ENCRYPTION_TYPE); try (MockedStatic<KerberosEncData> mockedEncData = Mockito.mockStatic(KerberosEncData.class)) { mockedEncData.when(() -> KerberosEncData.decrypt(ENCRYPTED_DATA, kerberosKey, ENCRYPTION_TYPE)).thenReturn(decryptedData); // WhenRegistered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.4K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/SMB1SigningDigestTest.java
when(readResponse.getFlags2()).thenReturn(SmbConstants.FLAGS2_SECURITY_SIGNATURES); when(readResponse.getSignSeq()).thenReturn(10); when(readResponse.getCommand()).thenReturn((int) ServerMessageBlock.SMB_COM_READ_ANDX); when(readResponse.getLength()).thenReturn(100); when(readResponse.getDataLength()).thenReturn(50); when(readResponse.getData()).thenReturn(readData);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 18.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/AllocInfoTest.java
@DisplayName("Should handle multiple invocations") void shouldHandleMultipleInvocations() { // Given when(mockAllocInfo.getCapacity()).thenReturn(1000L, 2000L, 3000L); when(mockAllocInfo.getFree()).thenReturn(500L, 1000L, 1500L); // When & Then assertEquals(1000L, mockAllocInfo.getCapacity()); assertEquals(500L, mockAllocInfo.getFree());Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 18.8K bytes - Viewed (0) -
src/test/java/jcifs/pac/kerberos/KerberosCredentialsTest.java
*/ @Test void testGetKey_KeyExists() throws LoginException { when(key1.getKeyType()).thenReturn(KEY_TYPE_1); when(key2.getKeyType()).thenReturn(KEY_TYPE_2); Set<Object> privateCredentials = new HashSet<>(); privateCredentials.add(key1); privateCredentials.add(key2); when(subject.getPrivateCredentials()).thenReturn(privateCredentials);Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 7K bytes - Viewed (0)