- Sort Score
- Result 10 results
- Languages All
Results 1081 - 1090 of 2,681 for Then (0.04 sec)
-
src/test/java/jcifs/smb/SmbTreeImplTest.java
MockitoAnnotations.openMocks(this); when(session.getConfig()).thenReturn(config); when(session.getContext()).thenReturn(context); when(session.getTransport()).thenReturn(transport); when(session.acquire()).thenReturn(session); when(config.isTraceResourceUsage()).thenReturn(false); when(context.getConfig()).thenReturn(config); when(session.isConnected()).thenReturn(true); }
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 7.8K bytes - Viewed (0) -
compat/maven-compat/src/test/java/org/apache/maven/toolchain/DefaultToolchainManagerTest.java
toolchainModels.add(ToolchainModel.newBuilder().type("unknown").build()); when(session.getRequest()).thenReturn(executionRequest); Session sessionv4 = mock(Session.class); when(session.getSession()).thenReturn(sessionv4); when(sessionv4.getToolchains()).thenReturn(toolchainModels);
Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Fri Mar 21 04:56:21 UTC 2025 - 11K bytes - Viewed (0) -
src/test/java/jcifs/SmbFileHandleTest.java
when(smbFileHandle.isValid()).thenReturn(true); assertTrue(smbFileHandle.isValid(), "isValid should return true when the handle is valid."); verify(smbFileHandle, times(1)).isValid(); } /** * Test isValid() when the handle is invalid. */ @Test void testIsValid_whenInvalid() { when(smbFileHandle.isValid()).thenReturn(false);
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.1K bytes - Viewed (0) -
fess-crawler-opensearch/src/test/java/org/codelibs/fess/crawler/client/FesenClientTest.java
when(mockSearchResponse.getScrollId()).thenReturn("scroll1", "scroll1"); when(mockSearchResponse.getHits()).thenReturn(mockSearchHits); when(mockSearchHits.getHits()).thenReturn(new SearchHit[] { mockHit }, new SearchHit[0]); when(mockHit.getIndex()).thenReturn("test-index"); when(mockHit.getId()).thenReturn("doc1");
Registered: Sat Dec 20 11:21:39 UTC 2025 - Last Modified: Thu Nov 20 08:44:44 UTC 2025 - 17K bytes - Viewed (0) -
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: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 21 04:51:33 UTC 2025 - 11.5K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbResourceLocatorImplTest.java
SmbResourceLocator context2 = mock(SmbResourceLocator.class); when(context2.getShare()).thenReturn("share"); when(context2.getDfsReferral()).thenReturn(null); when(context2.getUNCPath()).thenReturn("\\"); when(context2.getURLPath()).thenReturn("/share/"); when(context2.getServer()).thenReturn("server"); base2.resolveInContext(context2, "sub/child");
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 17.6K 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: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 21 04:51:33 UTC 2025 - 21.2K 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: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 7K 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: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 18.1K bytes - Viewed (0) -
src/test/java/jcifs/smb/DfsImplTest.java
// Set up mock behaviors when(mockContext.getConfig()).thenReturn(mockConfig); when(mockContext.getCredentials()).thenReturn(mockCredentials); when(mockContext.getTransportPool()).thenReturn(mockTransportPool); when(mockConfig.getDfsTtl()).thenReturn(300L); // Mock transport to throw IOException - simulating connection failureRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.5K bytes - Viewed (0)