- Sort Score
- Result 10 results
- Languages All
Results 181 - 190 of 2,390 for when (0.03 sec)
-
src/test/java/jcifs/internal/smb2/lease/DirectoryLeasingIntegrationTest.java
when(mockFile1.lastAccess()).thenReturn(System.currentTimeMillis() - 1800000); when(mockFile2.getName()).thenReturn("subfolder"); when(mockFile2.length()).thenReturn(0L); when(mockFile2.lastModified()).thenReturn(System.currentTimeMillis() - 1800000); when(mockFile2.isDirectory()).thenReturn(true); when(mockFile2.getAttributes()).thenReturn(0x10); // FILE_ATTRIBUTE_DIRECTORY
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 23 01:47:47 UTC 2025 - 14.2K bytes - Viewed (0) -
src/test/java/jcifs/context/CIFSContextCredentialWrapperTest.java
void testRenewCredentials_NtlmAuthenticatorReturnsNull() { try (MockedStatic<NtlmAuthenticator> mockedNtlmAuthenticator = mockStatic(NtlmAuthenticator.class)) { mockedNtlmAuthenticator.when(NtlmAuthenticator::getDefault).thenReturn(mockNtlmAuthenticator); mockedNtlmAuthenticator.when(
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.4K bytes - Viewed (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/connection/ConnectionListener.kt
call: Call, ) {} /** * Invoked when a connection is released as no longer required. */ open fun connectionClosed(connection: Connection) {} /** * Invoked when a call is assigned a particular connection. */ open fun connectionAcquired( connection: Connection, call: Call, ) {} /** * Invoked when a call no longer uses a connection. */Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Fri May 30 21:28:20 UTC 2025 - 2.2K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/msrpc/srvsvcTest.java
// Set the deferred field directly since it's a public field, not a method mockNdrBuffer.deferred = mockDeferredBuffer; lenient().when(mockNdrBuffer.derive(anyInt())).thenReturn(mockDeferredBuffer); lenient().when(mockDeferredBuffer.derive(anyInt())).thenReturn(mockDeferredBuffer); } @Test void testGetSyntax() { String syntax = srvsvc.getSyntax();
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbResourceLocatorInternalTest.java
} // Error path: overlaps may throw a CIFSException per signature @Test @DisplayName("overlaps throws CIFSException when implementation fails") void overlapsThrowsCifsException() throws Exception { when(locator.overlaps(any())).thenThrow(new CIFSException("Simulated failure")); CIFSException ex = assertThrows(CIFSException.class, () -> locator.overlaps(other));Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 6.9K bytes - Viewed (0) -
src/test/java/jcifs/netbios/NbtAddressTest.java
NetbiosAddress mockNetbiosAddress20 = mock(NetbiosAddress.class); when(mockNetbiosAddress20.getNameType()).thenReturn(0x20); when(mockNetbiosAddress20.getHostName()).thenReturn("ACTUAL_SERVER_NAME"); NetbiosAddress[] nodeStatusResponse = { mock(NetbiosAddress.class), mockNetbiosAddress20 }; when(mockNameServiceClient.getNodeStatus(nbtAddress)).thenReturn(nodeStatusResponse);Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 20.4K bytes - Viewed (0) -
android/guava/src/com/google/common/cache/CacheBuilder.java
* consideration by {@link #maximumWeight(long)} when determining which entries to evict, and use * of this method requires a corresponding call to {@link #maximumWeight(long)} prior to calling * {@link #build}. Weights are measured and recorded when entries are inserted into the cache, and * are thus effectively static during the lifetime of a cache entry. *Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 51.7K bytes - Viewed (0) -
guava/src/com/google/common/collect/TreeTraverser.java
* traversal. That is, all the nodes of depth 0 are returned, then depth 1, then 2, and so on. * * <p>No guarantees are made about the behavior of the traversal when nodes change while iteration * is in progress or when the iterators generated by {@link #children} are advanced. *Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Mar 17 20:26:29 UTC 2025 - 8.9K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/TreeTraverser.java
* traversal. That is, all the nodes of depth 0 are returned, then depth 1, then 2, and so on. * * <p>No guarantees are made about the behavior of the traversal when nodes change while iteration * is in progress or when the iterators generated by {@link #children} are advanced. *Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Mar 17 20:26:29 UTC 2025 - 8.3K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/info/Smb2QueryDirectoryResponseTest.java
private Configuration mockConfig; private Smb2QueryDirectoryResponse response; @BeforeEach void setUp() { MockitoAnnotations.openMocks(this); when(mockConfig.isUseUnicode()).thenReturn(true); when(mockConfig.getMaximumBufferSize()).thenReturn(65536); } @Test @DisplayName("Test constructor initializes with config and expectInfoClass") void testConstructor() {Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 23.5K bytes - Viewed (0)