- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 238 for thenReturn (1.62 sec)
-
src/test/java/jcifs/smb/SmbFileOutputStreamTest.java
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 15.8K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbPipeHandleImplTest.java
when(pipe.getPipeType()).thenReturn(SmbPipeResource.PIPE_TYPE_RDWR); when(pipe.getUncPath()).thenReturn("\\\\pipe\\\\my-pipe"); // Setup tree with configuration when(tree.getConfig()).thenReturn(config); when(tree.getSendBufferSize()).thenReturn(65536); when(config.getPid()).thenReturn(12345); when(config.getSendBufferSize()).thenReturn(65536);
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.7K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbPipeInputStreamTest.java
when(handle.getPipe()).thenReturn(pipe); // init(th) behavior inside SmbFileInputStream constructor when(tree.isSMB2()).thenReturn(smb2); when(tree.getReceiveBufferSize()).thenReturn(4096); when(tree.getMaximumBufferSize()).thenReturn(65535); when(tree.hasCapability(anyInt())).thenReturn(false); return new SmbPipeInputStream(handle, tree); }
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.9K bytes - Viewed (0) -
src/test/java/jcifs/smb/Kerb5ContextTest.java
when(gssContext.getCredDelegState()).thenReturn(false); when(gssContext.getMutualAuthState()).thenReturn(false); when(gssContext.getReplayDetState()).thenReturn(false); when(gssContext.getSequenceDetState()).thenReturn(false); when(gssContext.getAnonymityState()).thenReturn(false); when(gssContext.getConfState()).thenReturn(false); when(gssContext.getIntegState()).thenReturn(false);
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 14.2K bytes - Viewed (0) -
src/test/java/jcifs/http/NetworkExplorerTest.java
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/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/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"); lenient().when(nameServiceClient.getByName(anyString(), anyBoolean())).thenReturn(mock(Address.class));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/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/internal/CommonServerMessageBlockResponseTest.java
when(response1.getNextResponse()).thenReturn(response2); when(response2.getNextResponse()).thenReturn(response3); when(response3.getNextResponse()).thenReturn(null); when(response1.isAsync()).thenReturn(false); when(response2.isAsync()).thenReturn(true); when(response3.isAsync()).thenReturn(false); // When - test chain navigation and propertiesRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 20.3K 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)